@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg-shell: #141517;
  --bg-canvas: #ffffff;
  --bg-muted: #f6f7f9;
  --text-main: #141517;
  --text-muted: #7c828d;
  --border-light: #eceef2;

  /* Pastel Cards Palette */
  --pastel-blue: #eaf3fc;
  --pastel-purple: #ece5f6;
  --pastel-green: #dff2e5;
  --pastel-yellow: #fbf2dd;
  --accent-blue: #3b82f6;
  --accent-green: #16a34a;
  --brand-cream: #f5ebd6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

body {
  background-color: var(--bg-shell);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  padding: 10px 10px 10px 0;
}

/* Slim Dark Sidebar */
.sidebar {
  width: 84px;
  background-color: var(--bg-shell);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  flex-shrink: 0;
  justify-content: space-between;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background-color: var(--brand-cream);
  color: var(--bg-shell);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b808a;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.nav-unread-badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--bg-shell);
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.notification-nav-badge {
  background: #d97706;
}

.notification-header-link {
  text-decoration: none;
}

.header-unread-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #d97706;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: -20px;
  width: 4px;
  height: 20px;
  background-color: var(--brand-cream);
  border-radius: 0 4px 4px 0;
}

/* Tooltip saat hover ikon sidebar */
.nav-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 56px;
  background: #1e2024;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: all 0.18s ease;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Main White Canvas */
.main-wrapper {
  flex: 1;
  background-color: var(--bg-canvas);
  border-radius: 32px;
  padding: 28px 36px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Top Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text-main);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}

.icon-btn:hover {
  background: var(--bg-muted);
}

.notif-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: #ffffff;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-cream);
  color: var(--text-main);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* Dashboard Grid Layout */
.section-grid-top {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  gap: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* Left Big Pastel Blue Card */
.overview-hero-card {
  background-color: var(--pastel-blue);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
}

.hero-metric {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 4px;
}

.hero-sub {
  font-size: 13px;
  color: #5b6b7f;
}

.chart-area {
  margin: 18px 0 12px;
  position: relative;
}

.chart-badge {
  position: absolute;
  right: 22%;
  top: -10px;
  background: var(--bg-shell);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.timeframe-pills {
  display: flex;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #7c8b9e;
}

.timeframe-pills span.active {
  color: var(--text-main);
  font-weight: 700;
}

/* Right 3 Pastel Cards */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pastel-card {
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.pastel-purple {
  background-color: var(--pastel-purple);
}
.pastel-green {
  background-color: var(--pastel-green);
}
.pastel-yellow {
  background-color: var(--pastel-yellow);
}

.card-main-val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.card-sub-val {
  font-size: 12px;
  color: #646a75;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.white-icon-box {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.trend-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
}

/* Bottom Grid */
.section-grid-bottom {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 24px;
  align-items: start;
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.pill-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
}

.clean-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 10px 14px;
}

.clean-table td {
  padding: 12px 10px;
  font-size: 13.5px;
  vertical-align: middle;
}

.clean-table tr:hover td {
  background-color: #fafbfc;
}

.item-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dark-square-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--bg-shell);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.item-title {
  font-weight: 600;
  color: var(--text-main);
  display: block;
}

.item-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.status-positive {
  color: var(--accent-green);
  font-weight: 600;
}

/* Dark Highlight Card (Bottom Right) */
.dark-promo-card {
  background-color: var(--bg-shell);
  color: #ffffff;
  border-radius: 26px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.dark-promo-card h3 {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.highlight-pill {
  display: inline-block;
  border: 1.5px solid #a78bfa;
  border-radius: 10px;
  padding: 0 8px;
  transform: rotate(-2deg);
}

.dark-promo-card p {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.cta-pastel-btn {
  display: inline-block;
  background-color: #c6def8;
  color: var(--bg-shell);
  font-weight: 600;
  font-size: 13px;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  width: fit-content;
  position: relative;
  z-index: 2;
  transition: transform 0.15s;
}

.cta-pastel-btn:hover {
  transform: translateY(-2px);
}

.promo-decor {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  transform: rotate(15deg);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .section-grid-top,
  .section-grid-bottom {
    grid-template-columns: 1fr;
  }
  .assets-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* =========================================
   SHARED UI COMPONENTS (Projects, Tasks, dll)
   ========================================= */

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tab:hover {
  border-color: #cbd5e1;
  color: var(--text-main);
}

.filter-tab.active {
  background: var(--bg-shell);
  color: #ffffff;
  border-color: var(--bg-shell);
}

.btn-primary-dark {
  background: var(--bg-shell);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
}

.btn-primary-dark:hover {
  opacity: 0.9;
}

.btn-outline-sm {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.btn-outline-sm:hover {
  background: var(--bg-muted);
}

/* Mini KPI Strip */
.mini-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mini-stat-box {
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-stat-box .stat-label {
  font-size: 12.5px;
  color: #5b6370;
  margin-bottom: 4px;
}

.mini-stat-box .stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

/* Status Badges */
.badge-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-progress {
  background: var(--pastel-blue);
  color: #1d4ed8;
}
.badge-review {
  background: var(--pastel-purple);
  color: #6d28d9;
}
.badge-done {
  background: var(--pastel-green);
  color: #15803d;
}
.badge-onboard {
  background: var(--pastel-yellow);
  color: #b45309;
}

.code-chip {
  font-family: monospace;
  font-size: 12px;
  background: var(--bg-muted);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-main);
  font-weight: 600;
}

/* Progress Bar */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
}

.progress-track {
  flex: 1;
  height: 7px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--bg-shell);
  border-radius: 999px;
}

.progress-label {
  font-size: 12px;
  font-weight: 700;
  min-width: 34px;
}

/* Modal Overlay */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 21, 23, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 26px;
  width: 100%;
  max-width: 520px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  animation: modalPop 0.18s ease-out;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.close-modal-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.form-field input,
.form-field select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  font-size: 13.5px;
  outline: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--bg-shell);
}

/* Milestone Checklist Inside Modal */
.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 20px;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-muted);
}

.milestone-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--bg-shell);
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .mini-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   EXPANDABLE TOPBAR SEARCH
   ========================================= */
.search-box-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-pill {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  background: var(--bg-muted);
  color: var(--text-main);
  outline: none;
  transition: all 0.22s ease;
  pointer-events: none;
}

.search-box-wrap.active .search-input-pill {
  width: 240px;
  opacity: 1;
  padding: 9px 16px;
  margin-right: 8px;
  border-color: var(--border-light);
  background: #ffffff;
  pointer-events: auto;
}

.search-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 290px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  padding: 8px;
  display: none;
  z-index: 90;
}

.search-dropdown.show {
  display: block;
}

.search-result-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 10px 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
}

.search-result-item:hover {
  background: var(--bg-muted);
}

.search-result-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 2px 8px;
  border-radius: 999px;
}

/* =========================================
   KANBAN BOARD & TASK CARDS (tasks.php)
   ========================================= */
.form-field textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  font-size: 13.5px;
  outline: none;
  resize: vertical;
  min-height: 80px;
}

.form-field textarea:focus {
  border-color: var(--bg-shell);
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;
}

.kanban-col {
  background-color: var(--bg-muted);
  border-radius: 24px;
  padding: 16px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
}

.kanban-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.col-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-todo {
  background-color: #f59e0b;
}
.dot-doing {
  background-color: #3b82f6;
}
.dot-review {
  background-color: #8b5cf6;
}
.dot-done {
  background-color: #16a34a;
}

.col-count {
  background: #ffffff;
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
}

.task-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.priority-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.prio-high {
  background: #fee2e2;
  color: #b91c1c;
}
.prio-medium {
  background: var(--pastel-yellow);
  color: #b45309;
}
.prio-low {
  background: var(--pastel-blue);
  color: #1d4ed8;
}

.task-client-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 135px;
}

.task-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.task-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  margin-top: 2px;
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mini-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-shell);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-due {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.status-select-mini {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-muted);
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}

@media (max-width: 1150px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   CONTENT STUDIO GRID & MEDIA CARDS
   ========================================= */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.studio-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.studio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.studio-media-box {
  width: 100%;
  height: 185px;
  background: var(--bg-muted);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.studio-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.platform-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 21, 23, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pillar-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  color: var(--text-main);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.studio-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.studio-client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.studio-caption {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: var(--bg-muted);
  padding: 10px 12px;
  border-radius: 12px;
}

.studio-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fcfcfd;
}

.preview-caption-box {
  background: var(--bg-muted);
  padding: 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .studio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   CALENDAR TIMELINE & AGENDA LIST
   ========================================= */
.calendar-layout {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 24px;
  align-items: start;
}

.calendar-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 26px;
  padding: 22px;
}

.calendar-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.calendar-month-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.calendar-nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 10px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cal-cell {
  min-height: 92px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.cal-cell:hover {
  border-color: #cbd5e1;
  background: #fafbfc;
}

.cal-cell.empty {
  background: var(--bg-muted);
  border-color: transparent;
  cursor: default;
}

.cal-cell.today {
  border: 1.5px solid var(--bg-shell);
  background: #f8fafc;
}

.cal-cell.selected {
  background: var(--pastel-blue);
  border-color: #93c5fd;
}

.cal-day-num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-cell.today .cal-day-num span {
  background: var(--bg-shell);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.cal-event-dot-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.cal-mini-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-meeting {
  background: var(--pastel-purple);
  color: #5b21b6;
}
.ev-publish {
  background: var(--pastel-green);
  color: #15803d;
}
.ev-deadline {
  background: #fee2e2;
  color: #b91c1c;
}

/* Timeline Panel Kanan */
.timeline-panel {
  background: var(--bg-muted);
  border-radius: 26px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.timeline-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.timeline-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.timeline-time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 1100px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cal-cell {
    min-height: 68px;
    padding: 6px;
  }
}

/* =========================================
   FILE MANAGER BADGES & HELPERS
   ========================================= */
.file-ext-box {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.ext-doc {
  background: var(--pastel-blue);
  color: #1d4ed8;
}
.ext-img {
  background: var(--pastel-purple);
  color: #6d28d9;
}
.ext-zip {
  background: var(--pastel-yellow);
  color: #b45309;
}
.ext-misc {
  background: var(--bg-muted);
  color: var(--text-main);
}

.action-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-danger-sm {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  cursor: pointer;
}

.btn-danger-sm:hover {
  background: #fee2e2;
}

/* =========================================
   TEAM CHAT WORKSPACE (chat.php)
   ========================================= */
.chat-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  height: calc(100vh - 140px);
  min-height: 520px;
}

.chat-channels-panel {
  background: var(--bg-muted);
  border-radius: 26px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.channel-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 10px 6px;
}

.channel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-btn {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

.channel-unread-badge {
  min-width: 20px;
  height: 20px;
  flex: 0 0 auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.channel-unread-badge[hidden] {
  display: none;
}

.channel-btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

.channel-btn.active {
  background: var(--bg-shell);
  color: #ffffff;
}

.channel-btn.active .channel-sub {
  color: #9ca3af;
}

.channel-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
}

/* Area Percakapan Utama */
.chat-main-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-room-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages-box {
  flex: 1;
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fcfcfd;
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 74%;
}

.msg-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pastel-purple);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-row.mine .msg-avatar {
  background: var(--bg-shell);
  color: #ffffff;
}

.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-row.mine .msg-bubble-wrap {
  align-items: flex-end;
}

.msg-sender-meta {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 4px;
}

.msg-bubble {
  background: var(--bg-muted);
  color: var(--text-main);
  padding: 11px 15px;
  border-radius: 18px 18px 18px 4px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
}

.msg-row.mine .msg-bubble {
  background: var(--bg-shell);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
}

.msg-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.msg-attachment-img {
  max-width: 220px;
  border-radius: 12px;
  margin-top: 6px;
  display: block;
}

/* Bar Input Pesan */
.chat-input-bar {
  padding: 14px 18px;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-text-input {
  flex: 1;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-muted);
  font-size: 13.5px;
  outline: none;
}

.chat-text-input:focus {
  background: #ffffff;
  border-color: var(--bg-shell);
}

.attach-label-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  flex-shrink: 0;
}

.attach-label-btn.has-file {
  background: var(--pastel-green);
  border-color: #86efac;
}

@media (max-width: 900px) {
  .chat-shell {
    grid-template-columns: 1fr;
    height: auto;
  }
  .chat-channels-panel {
    max-height: 200px;
  }
  .chat-messages-box {
    height: 380px;
  }
}

/* =========================================
   BRAND & RESOURCE CARDS (brand_resource.php)
   ========================================= */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.brand-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 26px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.brand-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.color-palette-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.color-swatch-btn {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 8px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: transform 0.12s ease;
}

.color-swatch-btn:hover {
  transform: scale(1.02);
}

.swatch-preview {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.swatch-hex {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
}

.brand-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.brand-spec-box {
  background: var(--bg-muted);
  border-radius: 16px;
  padding: 14px;
}

.brand-spec-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.brand-spec-text {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
  white-space: pre-line;
}

.brand-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.color-picker-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.color-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-muted);
}

.color-input-box input[type="color"] {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-specs-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   TEAM & ROLES MANAGEMENT (members.php)
   ========================================= */
.members-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
  align-items: start;
}

.role-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-box {
  background: var(--bg-muted);
  border-radius: 22px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.perm-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.perm-chip {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.perm-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.perm-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-muted);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.perm-check-item input[type="checkbox"] {
  accent-color: var(--bg-shell);
  width: 15px;
  height: 15px;
}

@media (max-width: 1100px) {
  .members-layout {
    grid-template-columns: 1fr;
  }
}

/* Perbaikan overflow input & select di dalam modal grid */
.form-grid > *,
.form-field {
  min-width: 0;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-field select {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* =========================================
   CONTENT CALENDAR GRID (content_studio.php)
   ========================================= */
.cal-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 14px 20px;
}

.cal-month-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.content-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--border-light);
  gap: 1px;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
}

.cal-day-head {
  background: var(--bg-muted);
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cal-day-cell {
  background: #ffffff;
  min-height: 132px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s ease;
}

.cal-day-cell:hover {
  background: #fafbfd;
}

.cal-day-cell.empty {
  background: #f8f9fb;
}

.cal-day-cell.today {
  background: #fdfcf7;
}

.cal-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.cal-date-num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cal-day-cell.today .cal-date-num {
  background: var(--bg-shell);
  color: #ffffff;
}

.cal-quick-add {
  border: none;
  background: var(--bg-muted);
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal-quick-add:hover {
  background: var(--bg-shell);
  color: #ffffff;
}

.cal-event-chip {
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.35;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.12s ease;
}

.cal-event-chip:hover {
  transform: translateY(-1px);
}

.pillar-edukasi {
  background: var(--pastel-blue);
  color: #1e3a8a;
}
.pillar-trend {
  background: var(--pastel-purple);
  color: #581c87;
}
.pillar-product {
  background: var(--pastel-green);
  color: #14532d;
}
.pillar-series {
  background: var(--pastel-yellow);
  color: #78350f;
}

@media (max-width: 1100px) {
  .content-cal-grid {
    grid-template-columns: 1fr;
  }
  .cal-day-head,
  .cal-day-cell.empty {
    display: none;
  }
  .cal-day-cell {
    min-height: auto;
  }
}

/* =========================================
   TASK COMMENTS & REVISION THREAD
   ========================================= */
.task-comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-light);
  background: var(--bg-muted);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.task-comment-btn:hover {
  background: var(--bg-shell);
  color: #ffffff;
  border-color: var(--bg-shell);
}

.task-comment-btn.has-revision {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.comment-thread-box {
  max-height: 310px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--bg-muted);
  border-radius: 18px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.comment-bubble {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 13px;
}

.comment-bubble.is-revision {
  background: #fffbeb;
  border-color: #fde68a;
  border-left: 4px solid #f59e0b;
}

.comment-type-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.type-pill-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.type-pill-label input {
  accent-color: var(--bg-shell);
}

.notification-page {
  width: 100%;
  max-width: 980px;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notification-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.notification-item:hover {
  transform: translateY(-1px);
  border-color: #d9dee7;
  background: #fcfcfd;
}

.notification-item.is-unread {
  border-color: #f0dfbd;
  background: #fffdf8;
}

.notification-item-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent;
}

.notification-item.is-unread .notification-item-dot {
  background: #d97706;
  box-shadow: 0 0 0 4px #fbf2dd;
}

.notification-item-content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.notification-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.notification-item-top strong {
  font-size: 13.5px;
}

.notification-item-top time {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 11px;
}

.notification-item-message {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.notification-empty {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--border-light);
  border-radius: 22px;
  color: var(--text-muted);
  text-align: center;
  font-size: 12.5px;
}

.notification-empty strong {
  color: var(--text-main);
  font-size: 15px;
}

.notification-empty-icon {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--pastel-green);
  color: #15803d;
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 760px) {
  body {
    flex-direction: column;
    padding: 0;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    min-height: 62px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 14px;
  }

  .sidebar-top {
    flex: 1 1 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    width: auto;
  }

  .brand-logo {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
  }

  .nav-list {
    flex: 1 1 auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
  }

  .nav-link {
    width: 40px;
    height: 40px;
  }

  .nav-link.active::before {
    left: 50%;
    top: -8px;
    width: 20px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 0 0 4px 4px;
  }

  .nav-link::after {
    display: none;
  }

  .sidebar-bottom {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .main-wrapper {
    width: 100%;
    min-width: 0;
    padding: 24px 22px;
    border-radius: 24px 24px 0 0;
    gap: 22px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .page-title {
    font-size: 23px;
  }

  .topbar-actions {
    gap: 8px;
    margin-left: auto;
  }

  .search-box-wrap.active .search-input-pill {
    width: min(240px, calc(100vw - 150px));
  }

  .mini-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mini-stat-box,
  .section-grid-top > *,
  .section-grid-bottom > *,
  .members-layout > *,
  .calendar-layout > *,
  .brand-grid > * {
    min-width: 0;
  }

  .assets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar-row {
    align-items: stretch;
  }

  .toolbar-row > .btn-primary-dark {
    justify-content: center;
  }

  .filter-group {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .clean-table {
    display: block;
    width: max-content;
    min-width: 100%;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .clean-table th,
  .clean-table td {
    padding-right: 12px;
    padding-left: 12px;
  }

  .modal-backdrop {
    align-items: center;
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 24px;
    border-radius: 22px;
  }

  .calendar-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .calendar-card .cal-weekdays,
  .calendar-card .cal-days-grid {
    min-width: 520px;
  }

  .chat-shell {
    min-width: 0;
  }

  .chat-messages-box {
    min-width: 0;
  }

  .content-cal-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .content-cal-grid > * {
    min-width: 0;
  }

  .studio-footer,
  .brand-card-footer,
  .section-header,
  .notification-page-heading {
    flex-wrap: wrap;
    gap: 10px;
  }

  .notification-item {
    padding: 15px;
    border-radius: 16px;
  }
}

@media (max-width: 560px) {
  .sidebar {
    gap: 6px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .sidebar-top {
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .nav-list {
    gap: 4px;
  }

  .nav-link {
    width: 36px;
    height: 38px;
  }

  .main-wrapper {
    padding: 20px 16px;
    gap: 18px;
    border-radius: 20px 20px 0 0;
  }

  .page-title {
    font-size: 21px;
  }

  .user-pill {
    gap: 0;
    padding-right: 6px;
  }

  .user-meta {
    display: none;
  }

  .overview-hero-card,
  .pastel-card {
    padding: 18px;
    border-radius: 20px;
  }

  .assets-grid {
    gap: 10px;
  }

  .mini-stat-box {
    padding: 14px;
    border-radius: 18px;
  }

  .card-main-val {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .modal-card {
    padding: 20px;
    border-radius: 20px;
  }

  .form-grid,
  .perm-checkbox-grid,
  .brand-specs-grid,
  .color-picker-row {
    grid-template-columns: 1fr;
  }

  .calendar-nav-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .calendar-card,
  .timeline-panel,
  .brand-card,
  .role-box {
    padding: 18px;
    border-radius: 20px;
  }

  .comment-type-switch {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .main-wrapper {
    padding-right: 12px;
    padding-left: 12px;
  }

  .nav-link {
    width: 34px;
  }

  .sidebar {
    padding-right: 7px;
    padding-left: 7px;
  }

  .mini-stat-box {
    padding: 12px;
  }

  .mini-stat-box .stat-num {
    font-size: 21px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .calendar-card .cal-weekdays,
  .calendar-card .cal-days-grid {
    min-width: 490px;
  }
}

@media (max-width: 760px) {
  .calendar-layout {
    gap: 16px;
  }

  .calendar-card,
  .timeline-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .calendar-card {
    overflow: hidden;
  }

  .calendar-nav-header {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .calendar-month-title,
  .cal-month-title {
    font-size: 16px;
  }

  .calendar-nav-btns {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .calendar-nav-btns .btn-outline-sm {
    padding: 6px 9px;
    font-size: 11px;
  }

  .calendar-card .cal-weekdays,
  .calendar-card .cal-days-grid {
    min-width: 0;
  }

  .cal-weekdays {
    gap: 4px;
    margin-bottom: 6px;
    padding-bottom: 8px;
    font-size: 10px;
  }

  .cal-days-grid {
    gap: 4px;
  }

  .cal-cell {
    min-width: 0;
    min-height: 72px;
    gap: 4px;
    padding: 5px;
    border-radius: 12px;
  }

  .cal-day-num {
    font-size: 11px;
  }

  .cal-cell.today .cal-day-num span {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .cal-event-dot-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3px;
  }

  .cal-mini-pill {
    width: 10px;
    height: 5px;
    flex: 0 0 10px;
    padding: 0;
    overflow: hidden;
    border-radius: 999px;
    font-size: 0;
  }

  .cal-event-dot-list > div:last-child:not(.cal-mini-pill) {
    padding-left: 0 !important;
    font-size: 9px !important;
    line-height: 1;
  }

  .cal-nav-bar {
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .content-cal-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .cal-day-head,
  .cal-day-cell.empty {
    display: block;
  }

  .cal-day-head {
    padding: 7px 1px;
    border-radius: 8px;
    background: var(--bg-muted);
    font-size: 9px;
  }

  .cal-day-head:nth-child(1)::after { content: "Sen"; }
  .cal-day-head:nth-child(2)::after { content: "Sel"; }
  .cal-day-head:nth-child(3)::after { content: "Rab"; }
  .cal-day-head:nth-child(4)::after { content: "Kam"; }
  .cal-day-head:nth-child(5)::after { content: "Jum"; }
  .cal-day-head:nth-child(6)::after { content: "Sab"; }
  .cal-day-head:nth-child(7)::after { content: "Min"; }

  .cal-day-head {
    font-size: 0;
  }

  .cal-day-head::after {
    font-size: 9px;
  }

  .cal-day-cell {
    min-width: 0;
    min-height: 72px;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(20, 21, 23, 0.03);
  }

  .cal-day-cell.empty {
    border-color: transparent;
    background: rgba(246, 247, 249, 0.7);
    box-shadow: none;
  }

  .cal-cell-top {
    justify-content: flex-start;
    gap: 3px;
    margin-bottom: 0;
  }

  .cal-date-num {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    font-size: 10px;
  }

  .cal-day-cell.today .cal-date-num {
    background: var(--bg-shell);
    color: #ffffff;
  }

  .cal-day-count {
    display: inline-flex;
    min-width: 15px;
    height: 15px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--pastel-blue);
    color: #1d4ed8;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
  }

  .cal-quick-add {
    width: 22px;
    height: 22px;
    margin-left: auto;
    flex: 0 0 22px;
    font-size: 13px;
  }

  .cal-event-chip {
    display: flex;
    min-height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent !important;
    cursor: pointer;
  }

  .cal-event-chip > div {
    display: none !important;
  }

  .cal-event-chip::before {
    width: 12px;
    height: 6px;
    border-radius: 999px;
    content: "";
  }

  .cal-event-chip.pillar-edukasi::before { background: #60a5fa; }
  .cal-event-chip.pillar-trend::before { background: #a78bfa; }
  .cal-event-chip.pillar-product::before { background: #4ade80; }
  .cal-event-chip.pillar-series::before { background: #fbbf24; }

  .timeline-panel {
    gap: 12px;
  }

  .timeline-list {
    max-height: 420px;
  }
}

@media (max-width: 420px) {
  .calendar-card,
  .timeline-panel {
    padding: 12px;
  }

  .calendar-nav-header {
    flex-direction: column;
    gap: 8px;
  }

  .calendar-nav-btns {
    width: 100%;
    justify-content: space-between;
  }

  .cal-weekdays {
    font-size: 9px;
  }

  .cal-days-grid {
    gap: 3px;
  }

  .cal-cell,
  .cal-day-cell {
    min-height: 62px;
    padding: 4px;
    border-radius: 10px;
  }

  .cal-day-head {
    padding: 6px 0;
  }

  .cal-day-head:nth-child(1)::after { content: "S"; }
  .cal-day-head:nth-child(2)::after { content: "S"; }
  .cal-day-head:nth-child(3)::after { content: "R"; }
  .cal-day-head:nth-child(4)::after { content: "K"; }
  .cal-day-head:nth-child(5)::after { content: "J"; }
  .cal-day-head:nth-child(6)::after { content: "S"; }
  .cal-day-head:nth-child(7)::after { content: "M"; }

  .cal-day-count {
    min-width: 13px;
    height: 13px;
    font-size: 8px;
  }

  .cal-quick-add {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .cal-event-chip {
    min-height: 16px;
  }
}
