/* ===================================================
   CARAPAL360 — Design System & Styles
   Pixel-perfect clone of Simplify360 SuiteX
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');





/* ── CSS Custom Properties ────────────────────────── */
:root {
  /* Primary Colors */
  --primary-blue: #2D7FF9;
  --primary-blue-hover: #1A6AE0;
  --primary-blue-light: #EBF3FF;
  --primary-blue-dark: #1A56DB;

  /* Neutral Colors */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Accent Colors */
  --red-badge: #EF4444;
  --green-online: #22C55E;
  --settings-green: #065F46;
  --settings-green-bg: #D1FAE5;
  --settings-maroon: #7F1D1D;
  --settings-maroon-bg: #FEE2E2;

  /* Layout */
  --sidebar-width: 50px;
  --header-height: 48px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ── Reset & Base ─────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

ul,
li {
  list-style: none;
}

/* ── App Layout ───────────────────────────────────── */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--gray-50);
}

/* ── Header ───────────────────────────────────────── */
.header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 14px;
  z-index: 100;
  flex-shrink: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: -0.3px;
}

.header-logo .logo-text span {
  color: var(--gray-800);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--gray-500);
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
}

.header-icon-btn:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 0px;
  background: var(--red-badge);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
  line-height: 14px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  position: relative;
  cursor: pointer;
}

.user-avatar .online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: var(--green-online);
  border: 2px solid var(--white);
  border-radius: var(--radius-full);
}

.profile-dropdown {
  position: absolute;
  top: 54px;
  right: 16px;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}

.profile-dropdown-header {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.profile-email {
  font-size: 12px;
  color: var(--gray-500);
}

.profile-dropdown-body {
  padding: 8px 0;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray-700);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.notification-dropdown {
  right: 60px;
  width: 340px;
  border-radius: var(--radius-lg);
  padding: 0;
}

.notification-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-dropdown-header .profile-name {
  margin-bottom: 0;
}

.notification-count-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.notification-dropdown-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notification-dropdown-body::-webkit-scrollbar {
  width: 6px;
}

.notification-dropdown-body::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: var(--radius-full);
}

.notification-dropdown-body::-webkit-scrollbar-track {
  background: transparent;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.notification-item:hover {
  background: var(--gray-100);
}

.notification-item.unread {
  background: rgba(45, 127, 249, 0.07);
}

.notification-item.unread:hover {
  background: rgba(45, 127, 249, 0.13);
}

.notification-item .notification-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-item .notification-icon svg {
  display: block;
}

.notification-item .notification-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.notification-item .notification-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-item.unread .notification-title {
  font-weight: 600;
  color: var(--gray-900);
}

.notification-item .notification-meta {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--gray-500);
}

.notification-item .notification-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--primary-blue);
  flex-shrink: 0;
  align-self: center;
}

.notification-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  color: var(--gray-400);
  text-align: center;
}

.notification-empty svg {
  width: 32px;
  height: 32px;
  color: var(--gray-300);
}

.notification-empty .notification-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}

.notification-empty .notification-empty-sub {
  font-size: 12px;
  color: var(--gray-400);
}

.notification-error {
  padding: 16px;
  font-size: 12.5px;
  color: #DC2626;
  text-align: center;
}

.notification-skeleton {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notification-skeleton-row {
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 37%, var(--gray-100) 63%);
  background-size: 400% 100%;
  animation: notification-shimmer 1.4s ease infinite;
}

@keyframes notification-shimmer {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

/* ── Sidebar ──────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  flex: 1;
}

.sidebar-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--gray-400);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.sidebar-item:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.sidebar-item.active {
  background: var(--primary-blue);
  color: var(--white);
}

.sidebar-item.active:hover {
  background: var(--primary-blue-hover);
  color: var(--white);
}

.sidebar-item svg {
  width: 20px;
  height: 20px;
}

.sidebar-spacer {
  flex: 1;
}

/* ── Page Containers ──────────────────────────────── */
.page {
  display: none;
  height: 100%;
}

.page.active {
  display: flex;
  flex-direction: column;
}

/* ================================================================
   PAGE 1: DASHBOARD
   ================================================================ */
.dashboard-page,
.developer-page {
  padding: 24px 28px;
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  min-width: 180px;
}

.tab-group {
  display: flex;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--white);
}

.tab-btn {
  padding: 8px 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--primary-blue);
  color: var(--white);
}

.tab-btn:hover:not(.active) {
  background: var(--gray-50);
}

/* Action Cards Row */
.action-cards-row {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.action-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.action-card.selected {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

.action-card.selected::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--primary-blue);
}

.action-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
}

.action-card.selected .action-card-icon {
  color: var(--white);
}

.action-card-icon svg {
  width: 32px;
  height: 32px;
}

.action-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.action-card-desc {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.4;
}

.action-card.selected .action-card-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Listening Type Section */
.listening-section {
  background: var(--primary-blue);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 12px;
}

.listening-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.listening-cards-row {
  display: flex;
  gap: 16px;
}

.listening-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.listening-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.listening-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.listening-card-icon svg {
  width: 36px;
  height: 36px;
}

.listening-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.listening-card-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* ================================================================
   PAGE 2: SOCIAL INBOX
   ================================================================ */
.inbox-page {
  display: none;
  height: 100%;
}

.inbox-page.active {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.inbox-left {
  width: 320px;
  border-right: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

/* Inbox Toolbar */
.inbox-toolbar {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toolbar-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2px;
}

.toolbar-tab {
  width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toolbar-tab.active {
  background: var(--primary-blue);
  color: var(--white);
}

.toolbar-tab:hover:not(.active) {
  background: var(--gray-200);
}

.toolbar-tab svg {
  width: 16px;
  height: 16px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-action-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.toolbar-action-btn:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.toolbar-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Inbox Filter Bar */
.inbox-filter-bar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.filter-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
}

.status-filter-dropdown {
  position: absolute;
  top: 100%;
  left: 16px;
  margin-top: 6px;
  width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
  padding: 6px 0;
}

.status-filter-option.active {
  color: var(--primary-blue);
  font-weight: 600;
  background: var(--primary-blue-light);
}

.filter-status svg {
  width: 16px;
  height: 16px;
  color: var(--gray-400);
}

.filter-status .chevron {
  width: 12px;
  height: 12px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.filter-action-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.filter-action-btn:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.filter-action-btn svg {
  width: 14px;
  height: 14px;
}

/* Case List */
.case-list {
  flex: 1;
  overflow-y: auto;
}

.case-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  gap: 10px;
  position: relative;
}

.case-item:hover {
  background: var(--gray-50);
}

.case-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.case-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content {
  flex: 1;
  min-width: 0;
}

.case-source-label {
  font-size: 9px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.case-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.case-text {
  font-size: 11.5px;
  color: var(--gray-600);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-text .highlight {
  background: #FEF08A;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 500;
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-action-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.case-action-icon:hover {
  color: var(--primary-blue);
}

.case-action-icon svg {
  width: 14px;
  height: 14px;
}

.case-timestamp {
  font-size: 10px;
  color: var(--gray-400);
}

.case-checkbox {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--white);
  z-index: 1;
}

.case-checkbox:hover {
  border-color: var(--primary-blue);
}

/* Checked state (toggled via JS classList, not inline styles) */
.case-checkbox.checked {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

.case-checkbox-header.checked {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

/* Selected case row */
.case-item.selected {
  background: var(--primary-blue-light);
}

/* Pagination */
.case-pagination {
  padding: 10px 14px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
  background: var(--white);
}

.case-pagination .smiley-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-arrow:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.pagination-arrow svg {
  width: 14px;
  height: 14px;
}

.pagination-input {
  width: 28px;
  height: 24px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 12px;
  font-family: inherit;
  color: var(--gray-700);
  outline: none;
}

.pagination-input:focus {
  border-color: var(--primary-blue);
}

/* Inbox Center Panel */
.inbox-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  overflow: hidden;
  position: relative;
}

.inbox-empty-state {
  margin: auto;
  text-align: center;
  color: var(--gray-400);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Inbox Center Detail View */
.inbox-center-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--gray-50);
}

.inbox-detail-header {
  padding: 12px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.inbox-detail-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inbox-detail-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.inbox-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inbox-detail-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 6px;
}

.inbox-detail-source {
  font-size: 10px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.inbox-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-action-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.detail-action-btn:hover {
  background: var(--gray-100);
  color: var(--gray-800);
  border-color: var(--gray-300);
}

.detail-action-btn:active {
  transform: scale(0.94);
  border-color: var(--primary-blue);
}

.detail-action-btn.warn:hover {
  color: #B45309;
  border-color: #FCD34D;
  background: #FFFBEB;
}

.detail-action-btn.delete {
  margin-left: 6px;
  position: relative;
}

.detail-action-btn.delete::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--gray-200);
}

.detail-action-btn.delete:hover {
  color: var(--red-badge);
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.inbox-detail-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-subject-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 4px;
  box-shadow: var(--shadow-sm);
}

.thread-message {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  max-width: 85%;
  align-self: flex-start;
  animation: fadeIn 0.25s ease both;
}

.thread-message.agent {
  align-self: flex-end;
  background: var(--primary-blue-light);
  border-color: rgba(45, 127, 249, 0.2);
}

.thread-message.system {
  align-self: center;
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  max-width: 95%;
  text-align: center;
  font-style: italic;
  padding: 8px 12px;
}

.thread-message.system .message-header {
  border-bottom: none;
  margin-bottom: 4px;
  padding-bottom: 0;
  justify-content: center;
}

.thread-message.system .message-sender {
  color: var(--gray-500);
  margin-right: 8px;
}

.thread-message.system .message-content {
  color: var(--gray-500);
  font-size: 11px;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 6px;
}

.thread-message.agent .message-header {
  border-bottom-color: rgba(45, 127, 249, 0.1);
  color: var(--primary-blue);
}

.message-sender {
  font-weight: 600;
  color: var(--gray-700);
}

.thread-message.agent .message-sender {
  color: var(--primary-blue);
}

.message-content {
  font-size: 12.5px;
  color: var(--gray-700);
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.email-attachments {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--gray-200);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 10.5px;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.attachment-chip:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.attachment-chip svg {
  width: 12px;
  height: 12px;
  color: var(--gray-400);
}

/* Reply Composer */
.inbox-detail-composer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 14px 20px;
  flex-shrink: 0;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.02);
}

.composer-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 6px;
}

.composer-tool-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.composer-tool-btn:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.composer-tool-btn:active,
.composer-tool-btn.active {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--gray-100);
}

.composer-tool-btn svg {
  width: 14px;
  height: 14px;
}

.composer-attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.composer-attach-preview:empty {
  margin-top: 0;
}

.composer-input-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.composer-textarea {
  width: 100%;
  height: 80px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--gray-800);
  resize: none;
  outline: none;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  transition: border-color var(--transition-fast);
}

.composer-textarea:focus {
  border-color: var(--primary-blue);
}

.composer-textarea:empty::before {
  content: attr(data-placeholder);
  color: var(--gray-400);
  pointer-events: none;
}

.composer-textarea a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.composer-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.composer-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gray-500);
  cursor: pointer;
  user-select: none;
}

.composer-checkbox-label input {
  width: 14px;
  height: 14px;
  accent-color: var(--primary-blue);
  cursor: pointer;
}

.composer-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary-blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  border: none;
  cursor: pointer;
}

.composer-send-btn:hover {
  background: var(--primary-blue-hover);
}

.composer-send-btn.gmail {
  background: #EA4335;
}

.composer-send-btn.gmail:hover {
  background: #D33426;
}

.composer-send-btn svg {
  width: 12px;
  height: 12px;
}

/* Inbox Right Panel */
.inbox-right {
  width: 280px;
  background: var(--white);
  flex-shrink: 0;
  border-left: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inbox-right-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.inbox-right-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.inbox-right-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.metadata-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metadata-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gray-100);
}

.customer-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px;
}

.customer-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 11.5px;
  flex-shrink: 0;
}

.customer-profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.customer-profile-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-profile-email {
  font-size: 10.5px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metadata-form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metadata-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metadata-field label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--gray-500);
}

.metadata-select {
  padding: 7px 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  font-family: inherit;
}

.metadata-select:focus {
  border-color: var(--primary-blue);
}

.sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #B45309;
  background: #FEF3C7;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.sla-badge svg {
  width: 12px;
  height: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.metadata-tag {
  font-size: 10px;
  font-weight: 500;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.metadata-tag.urgent {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #B91C1C;
}

/* Source Filter Pills Bar */
.inbox-source-filters {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
}

.inbox-source-filters::-webkit-scrollbar {
  height: 4px;
}

.source-filter-pill {
  padding: 4px 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.source-filter-pill:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-800);
}

.source-filter-pill.active {
  background: var(--primary-blue-light);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.source-filter-pill.active.gmail {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #B91C1C;
}

/* ================================================================
   PAGE 3: SETTINGS
   ================================================================ */
.settings-page {
  padding: 24px 28px;
  overflow-y: auto;
}

.settings-section {
  margin-bottom: 32px;
}

.settings-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.settings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.settings-card {
  width: 140px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.settings-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.settings-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-card-icon svg {
  width: 20px;
  height: 20px;
}

.settings-card-icon.green {
  background: var(--settings-green-bg);
  color: var(--settings-green);
}

.settings-card-icon.maroon {
  background: var(--settings-maroon-bg);
  color: var(--settings-maroon);
}

.settings-card-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.35;
}

.settings-page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.settings-card-icon.orange {
  background: #FEE2E2;
  color: #C2410C;
}

/* ================================================================
   PAGE 4: MANAGE CHANNELS
   ================================================================ */
.channels-page {
  padding: 0;
  overflow-y: auto;
}

.channels-page.active {
  display: flex;
  flex-direction: column;
}

.channels-header {
  padding: 24px 28px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.channels-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.channels-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.breadcrumb-link {
  color: var(--primary-blue);
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--gray-400);
}

.breadcrumb-current {
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.channels-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Source Selection (left panel) */
.channels-sources {
  width: 380px;
  padding: 24px 20px;
  border-right: 1px solid var(--gray-200);
  background: var(--white);
  overflow-y: auto;
  flex-shrink: 0;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.source-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.source-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.source-card.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

.source-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

.source-card.active .source-card-icon {
  color: var(--white);
}

.source-card-icon svg {
  width: 32px;
  height: 32px;
}

.source-card-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.35;
}

.source-card.active .source-card-label {
  color: var(--white);
}

/* Channel Selection (right panel) */
.channels-panel {
  flex: 1;
  padding: 24px 28px;
  overflow-y: auto;
  background: var(--gray-50);
}

.channels-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.channel-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.channel-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Selected channel (toggled via JS classList) */
.channel-card.selected {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(45, 127, 249, 0.2);
}

.channel-card-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-card-logo svg {
  width: 40px;
  height: 40px;
}

.channel-card-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.3;
}

/* Animations for channel cards */
.page.active .source-card {
  animation: fadeIn 0.3s ease both;
}

.page.active .source-card:nth-child(1) {
  animation-delay: 0.05s;
}

.page.active .source-card:nth-child(2) {
  animation-delay: 0.1s;
}

.page.active .source-card:nth-child(3) {
  animation-delay: 0.15s;
}

.page.active .source-card:nth-child(4) {
  animation-delay: 0.2s;
}

.page.active .source-card:nth-child(5) {
  animation-delay: 0.25s;
}

.page.active .source-card:nth-child(6) {
  animation-delay: 0.3s;
}

.page.active .channel-card {
  animation: fadeIn 0.35s ease both;
}

.page.active .channel-card:nth-child(1) {
  animation-delay: 0.1s;
}

.page.active .channel-card:nth-child(2) {
  animation-delay: 0.15s;
}

.page.active .channel-card:nth-child(3) {
  animation-delay: 0.2s;
}

.page.active .channel-card:nth-child(4) {
  animation-delay: 0.25s;
}

.page.active .channel-card:nth-child(5) {
  animation-delay: 0.3s;
}

.page.active .channel-card:nth-child(6) {
  animation-delay: 0.35s;
}

.page.active .channel-card:nth-child(7) {
  animation-delay: 0.4s;
}

/* ── Gmail Configuration Panel ────────────────────── */
.gmail-config-panel {
  flex: 1;
  padding: 0 8px;
  overflow-y: auto;
}

.gmail-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px;
}

.gmail-config-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gmail-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.gmail-back-btn:hover {
  background: var(--gray-100);
}

.gmail-back-btn svg {
  width: 18px;
  height: 18px;
}

.gmail-config-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: 0.5px;
}

.gmail-connect-btn {
  background: var(--white);
  color: #EA4335;
  border: 1.5px solid #EA4335;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gmail-connect-btn:hover {
  background: #EA4335;
  color: var(--white);
}

.gmail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
  margin: 16px 0;
}

.gmail-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gmail-tab:hover {
  color: var(--gray-700);
}

.gmail-tab.active {
  color: #EA4335;
  border-bottom-color: #EA4335;
  font-weight: 600;
}

.gmail-tab-content {
  display: none;
  padding: 4px 0;
}

.gmail-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease both;
}

.gmail-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #FEF3CD;
  border: 1px solid #F0D060;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: #664D03;
  line-height: 1.5;
}

.gmail-info-banner svg {
  flex-shrink: 0;
  color: #B88A00;
  margin-top: 1px;
}

/* Gmail Form Styles */
.gmail-config-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gmail-form-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.gmail-form-section:last-of-type {
  border-bottom: none;
}

.gmail-form-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gmail-form-section-title svg {
  color: var(--gray-500);
}

.gmail-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gmail-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gmail-form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.2px;
}

.gmail-form-group input[type="text"],
.gmail-form-group input[type="email"],
.gmail-form-group input[type="number"],
.gmail-form-group input[type="password"],
.gmail-form-group select {
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.gmail-form-group input:focus,
.gmail-form-group select:focus {
  border-color: #EA4335;
  box-shadow: 0 0 0 3px rgba(234, 67, 53, 0.1);
}

.gmail-form-group select[multiple] {
  min-height: 80px;
}

.gmail-password-wrapper {
  position: relative;
  display: flex;
}

.gmail-password-wrapper input {
  flex: 1;
  padding-right: 40px;
}

.gmail-toggle-password {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.gmail-toggle-password:hover {
  color: var(--gray-700);
}

.gmail-toggle-password svg {
  width: 16px;
  height: 16px;
}

.gmail-form-group-checkbox {
  grid-column: span 2;
}

.gmail-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: var(--gray-700) !important;
}

.gmail-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #EA4335;
  cursor: pointer;
}

.gmail-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
}

.gmail-btn-primary {
  background: #EA4335;
  color: var(--white);
  border: 1.5px solid #EA4335;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gmail-btn-primary:hover {
  background: #D33426;
  border-color: #D33426;
  box-shadow: 0 2px 8px rgba(234, 67, 53, 0.3);
}

.gmail-btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gmail-btn-secondary:hover {
  border-color: var(--gray-500);
  background: var(--gray-50);
}

/* Gmail Forwarding Styles */
.gmail-forwarding-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
}

.gmail-forwarding-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
  display: block;
}

.gmail-forwarding-copy {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.gmail-forwarding-copy input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--gray-800);
  background: var(--gray-50);
  outline: none;
}

.gmail-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.gmail-copy-btn:hover {
  background: var(--primary-blue-hover);
}

.gmail-copy-btn svg {
  width: 14px;
  height: 14px;
}

.gmail-forwarding-steps {
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.gmail-forwarding-steps h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.gmail-forwarding-steps ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gmail-forwarding-steps li {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.5;
  list-style: decimal;
}

.gmail-forwarding-steps li strong {
  color: var(--gray-800);
}

/* Gmail Connected Accounts */
.gmail-connected-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--gray-400);
}

.gmail-connected-empty svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.gmail-connected-empty p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.gmail-connected-empty span {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.gmail-connected-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gmail-account-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
}

.gmail-account-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.gmail-account-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #EA4335, #FBBC05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.gmail-account-info {
  flex: 1;
  min-width: 0;
}

.gmail-account-email {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gmail-account-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green-online);
}

.gmail-account-status svg {
  width: 12px;
  height: 12px;
}

/* Gmail test connection toast */
.gmail-toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  z-index: 600;
  animation: gmailToastIn 0.25s ease both;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 380px;
}

.gmail-toast.success {
  background: #1F2937;
}

.gmail-toast.error {
  background: #DC2626;
}

.gmail-toast.info {
  background: #1F2937;
}

.gmail-toast-text {
  flex: 1;
  line-height: 1.4;
}

.gmail-toast-action {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #93C5FD;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.gmail-toast-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

@keyframes gmailToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scrollbar Styling ────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ── Utility Classes ──────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Animations ───────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.page.active .action-card {
  animation: fadeIn 0.35s ease both;
}

.page.active .action-card:nth-child(1) {
  animation-delay: 0.05s;
}

.page.active .action-card:nth-child(2) {
  animation-delay: 0.1s;
}

.page.active .action-card:nth-child(3) {
  animation-delay: 0.15s;
}

.page.active .action-card:nth-child(4) {
  animation-delay: 0.2s;
}

.page.active .action-card:nth-child(5) {
  animation-delay: 0.25s;
}

.page.active .listening-card {
  animation: fadeIn 0.4s ease both;
}

.page.active .listening-card:nth-child(1) {
  animation-delay: 0.15s;
}

.page.active .listening-card:nth-child(2) {
  animation-delay: 0.2s;
}

.page.active .listening-card:nth-child(3) {
  animation-delay: 0.25s;
}

.page.active .listening-card:nth-child(4) {
  animation-delay: 0.3s;
}

.page.active .listening-card:nth-child(5) {
  animation-delay: 0.35s;
}

.page.active .settings-card {
  animation: fadeIn 0.3s ease both;
}

.page.active .settings-card:nth-child(1) {
  animation-delay: 0.03s;
}

.page.active .settings-card:nth-child(2) {
  animation-delay: 0.06s;
}

.page.active .settings-card:nth-child(3) {
  animation-delay: 0.09s;
}

.page.active .settings-card:nth-child(4) {
  animation-delay: 0.12s;
}

.page.active .settings-card:nth-child(5) {
  animation-delay: 0.15s;
}

.page.active .settings-card:nth-child(6) {
  animation-delay: 0.18s;
}

.page.active .settings-card:nth-child(7) {
  animation-delay: 0.21s;
}

.page.active .settings-card:nth-child(8) {
  animation-delay: 0.24s;
}

.case-item {
  animation: slideInLeft 0.3s ease both;
}

.case-item:nth-child(1) {
  animation-delay: 0.05s;
}

.case-item:nth-child(2) {
  animation-delay: 0.1s;
}

.case-item:nth-child(3) {
  animation-delay: 0.15s;
}

.case-item:nth-child(4) {
  animation-delay: 0.2s;
}

/* ── Tooltip ──────────────────────────────────────── */
.sidebar-item[data-tooltip] {
  position: relative;
}

.sidebar-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-800);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 200;
}

.sidebar-item[data-tooltip]:hover::after {
  opacity: 1;
}

/* ── Facebook Pages Panel ─────────────────────────── */
.fb-pages-panel {
  flex: 1;
  padding: 0 8px;
}

.fb-pages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px;
}

.fb-pages-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.fb-back-btn:hover {
  background: var(--gray-100);
}

.fb-back-btn svg {
  width: 18px;
  height: 18px;
}

.fb-pages-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: 0.5px;
}

.fb-add-channel-btn {
  background: var(--white);
  color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fb-add-channel-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.fb-add-channel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fb-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
  margin: 16px 0;
}

.fb-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fb-tab:hover {
  color: var(--gray-700);
}

.fb-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  font-weight: 600;
}

.fb-status {
  padding: 18px;
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-md);
  color: var(--gray-600);
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 16px;
}

.fb-status.error {
  background: var(--settings-maroon-bg);
  border-color: var(--settings-maroon);
  color: var(--settings-maroon);
}

.fb-status.loading {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.fb-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.fb-page-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.fb-page-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.fb-page-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-200);
}

.fb-page-info {
  flex: 1;
  min-width: 0;
}

.fb-page-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-page-handle {
  font-size: 0.78rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-page-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green-online);
}

.fb-page-status svg {
  width: 12px;
  height: 12px;
}

.fb-view-msgs {
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-blue);
}

/* ── Keyboard Accessibility ───────────────────────── */
/* Visible focus ring for keyboard users only (not on mouse click) */
:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Press feedback for clickable cards (replaces inline-style JS) */
.settings-card.pressed,
.listening-card.pressed {
  transform: scale(0.97);
}

/* ── Floating Help Button ─────────────────────────── */
.help-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(45, 127, 249, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  z-index: 500;
}

.help-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(45, 127, 249, 0.5);
}

/* ── Chatbot Panel Styling ──────────────────────── */
.chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 360px;
  height: 480px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  transition: all 0.3s ease;
}

.chatbot-header {
  padding: 14px 16px;
  background: var(--primary-blue);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  font-size: 14px;
  font-weight: 600;
}

.chatbot-subtitle {
  font-size: 11px;
  opacity: 0.85;
}

.chatbot-online-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.chatbot-close-btn:hover {
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-message {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 12px;
  word-wrap: break-word;
}

.chatbot-message.bot {
  background: #F1F5F9;
  color: #334155;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chatbot-message.user {
  background: var(--primary-blue);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-input-area {
  padding: 12px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  gap: 8px;
  background: var(--white);
}

.chatbot-input-area input {
  flex: 1;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  transition: border 0.2s;
}

.chatbot-input-area input:focus {
  border-color: var(--primary-blue);
}

.chatbot-send-btn {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.chatbot-send-btn:hover {
  background: #1D6AE5;
}

.chatbot-sql-info {
  font-family: monospace;
  font-size: 11px;
  background: #E2E8F0;
  padding: 6px;
  border-radius: 6px;
  margin-top: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
}


/* ── Google Client ID Modal Overlay ───────────────── */
.gmail-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease both;
}

.gmail-modal-card {
  width: 520px;
  max-width: 90%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gmail-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gmail-modal-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

.gmail-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
}

.gmail-modal-close:hover {
  color: var(--gray-700);
}

.gmail-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: 65vh;
}

.gmail-modal-body p {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.5;
}

.setup-instructions-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setup-instructions-box h4 {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 12px;
}

.setup-instructions-box ol {
  list-style: decimal;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setup-instructions-box li {
  line-height: 1.5;
  color: var(--gray-600);
  list-style: decimal;
}

.setup-instructions-box a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
}

.gmail-modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.gmail-modal-form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
}

.gmail-modal-form-group input {
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gmail-modal-form-group input:focus {
  border-color: #EA4335;
  box-shadow: 0 0 0 3px rgba(234, 67, 53, 0.1);
}

.gmail-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ── Central Dashboard / Stats Page ───────────────────── */

.stats-page {
  padding: 32px;
  overflow-y: auto;
  background: #F3F4F6;
  width: 100%;
  height: 100%;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.stats-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.stats-subtitle {
  font-size: 14px;
  color: var(--gray-500);
}

.stats-filters {
  display: flex;
  gap: 12px;
}

.stats-filter-select {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  background: white;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.stats-filter-select:hover {
  border-color: var(--gray-400);
}

.stats-filter-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.stats-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stats-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-card-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
}

.stats-card-value.status-warning {
  color: #D97706;
}

.stats-card-value.status-success {
  color: #059669;
}

.stats-layout-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.stats-chart-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-200);
}

.stats-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.stats-distribution {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-bar-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.stats-bar-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}

.stats-bar-track {
  width: 100%;
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.stats-bar-fill {
  height: 100%;
  background: var(--primary-blue);
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

/* AI Reply Composer button */
.composer-ai-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.composer-ai-btn:disabled {
  background: var(--gray-300) !important;
  color: var(--gray-500) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Escalations Widget styles */
.escalation-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: #F9FAFB;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s ease;
}

.escalation-card:hover {
  border-color: #EF4444;
  background: #FEF2F2;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.esc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.esc-badge-p0 {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.esc-badge-p1 {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FCD34D;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.esc-platform {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: capitalize;
}

.esc-time {
  font-size: 11px;
  color: var(--gray-400);
}

.esc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.esc-meta {
  font-size: 11px;
  color: var(--gray-500);
}

/* Webhook Simulator Styles */
.developer-page {
  padding: 32px;
  overflow-y: auto;
  background: #F3F4F6;
  width: 100%;
  height: 100%;
}

.sim-log-line {
  margin-bottom: 6px;
  border-bottom: 1px solid #1E293B;
  padding-bottom: 4px;
}

.sim-log-timestamp {
  color: #64748B;
  margin-right: 8px;
}

.sim-log-info {
  color: #38BDF8;
}

.sim-log-success {
  color: #34D399;
}

.sim-log-error {
  color: #F87171;
}

/* ══════════════════════════════════════════════════════
   NEW TRIAGE ESCALATION DASHBOARD & LAYOUT OVERRIDES
   ══════════════════════════════════════════════════════ */

/* -- Layout Restructuring -- */
@media (min-width: 769px) {
  .app-layout {
    flex-direction: row !important;
  }

  .app-body {
    flex-direction: row !important;
  }

  .sidebar {
    width: 240px !important;
    padding: 24px 16px !important;
    align-items: flex-start !important;
    background: #FFFFFF !important;
  }

  .sidebar-logo {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    padding-left: 8px;
  }

  .sidebar-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
  }

  .sidebar-logo .logo-text span {
    color: var(--primary-blue);
  }

  .sidebar-nav {
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .sidebar-item {
    width: 100% !important;
    height: auto !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    color: #4B5563 !important;
    background: transparent;
  }

  .sidebar-item svg {
    margin: 0 !important;
  }

  .sidebar-label {
    display: inline !important;
    font-size: 14px;
    font-weight: 500;
  }

  .sidebar-item.active {
    background: #EFF6FF !important;
    color: var(--primary-blue) !important;
  }

  .sidebar-profile {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 16px 8px;
    border-top: 1px solid #F3F4F6;
    width: 100%;
    margin-top: auto;
    cursor: pointer;
  }

  .sidebar-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4B5563;
    position: relative;
  }

  .sidebar-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  .sidebar-profile-info {
    display: flex;
    flex-direction: column;
  }

  .sidebar-profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
  }

  .sidebar-profile-role {
    font-size: 12px;
    color: #9CA3AF;
  }

  .main-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    background: #F9FAFB;
  }

  .header {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
    padding: 0 32px !important;
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .header-logo.mobile-only-logo {
    display: none !important;
  }

  .header-title-area {
    display: flex;
    flex-direction: column;
  }

  .header-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
  }

  .header-page-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 4px 0 0 0;
  }

  .header-search-bar {
    display: flex;
    align-items: center;
    background: #F3F4F6;
    border-radius: 8px;
    padding: 8px 16px;
    width: 280px;
    margin-left: auto;
    margin-right: 24px;
  }

  .header-search-bar input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #1F2937;
    margin-left: 8px;
    width: 100%;
  }

  .header-search-bar .search-icon {
    color: #9CA3AF;
    width: 16px;
    height: 16px;
  }

  .header-right .user-avatar {
    display: none !important;
  }

  .bottom-nav {
    display: none !important;
  }
}

/* -- Mobile View Layouts (< 768px) -- */
@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }

  .main-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 72px;
    background: #F9FAFB;
  }

  .header {
    height: 60px !important;
    padding: 0 16px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
  }

  .header-logo.mobile-only-logo {
    display: flex !important;
    align-items: center;
  }

  .header-title-area {
    display: none !important;
  }

  .header-search-bar {
    display: none !important;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #6B7280;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    padding: 8px 0;
  }

  .bottom-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .bottom-nav-item.active {
    color: var(--primary-blue);
  }
}

/* -- Dashboard Main Page & Grids -- */
.stats-page {
  padding: 32px !important;
  overflow-y: auto;
  height: 100%;
}

@media (max-width: 768px) {
  .stats-page {
    padding: 16px !important;
  }
}

/* 4 Metrics Row */
.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .dashboard-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dashboard-metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.dashboard-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.metric-card-header,
.status-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.metric-card-title,
.status-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #4B5563;
}

.metric-icon-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.badge-red {
  background: #FEE2E2;
  color: #EF4444;
}

.metric-icon {
  color: #111827;
}

.metric-card-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
}

.metric-change-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.pill-red {
  background: #FEE2E2;
  color: #EF4444;
}

.metric-subtext {
  font-size: 12px;
  color: #6B7280;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-green {
  background: #10B981;
}

.dot-red {
  background: #EF4444;
}

.status-card-body {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.text-green {
  color: #10B981;
}

.text-red {
  color: #EF4444;
}

.border-green {
  border-color: #A7F3D0 !important;
}

.border-red {
  border-color: #FCA5A5 !important;
}

/* Middle Grid */
.dashboard-middle-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .dashboard-middle-grid {
    grid-template-columns: 1fr;
  }
}

.triage-queue-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-header-with-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.card-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin: 4px 0 0 0;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-select {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  outline: none;
  cursor: pointer;
}

.filters-btn {
  background: #111827;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.filters-btn:hover {
  opacity: 0.9;
}

.triage-table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 480px;
  margin-bottom: 16px;
}

.triage-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.triage-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  border-bottom: 1px solid #F3F4F6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  background: #FFFFFF;
  z-index: 10;
}

/* Ensure Assign To and Status columns do not get squished */
.triage-table th:nth-child(6),
.triage-table td:nth-child(6) {
  width: 140px;
  min-width: 140px;
}

.triage-table th:nth-child(7),
.triage-table td:nth-child(7) {
  width: 120px;
  min-width: 120px;
}

.triage-table td {
  padding: 16px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}

.triage-row:hover {
  background: #F9FAFB;
  cursor: pointer;
}

/* Custom interactive triage table select elements */
.triage-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  font-size: 12px;
  font-weight: 500;
  width: 100%;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.triage-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.1);
}

.triage-select-status-open {
  border-left: 3px solid #2D7FF9;
}

.triage-select-status-pending {
  border-left: 3px solid #F59E0B;
}

.triage-select-status-resolved {
  border-left: 3px solid #10B981;
}

.triage-select-status-closed {
  border-left: 3px solid #6B7280;
}


/* Badges inside Triage table */
.priority-badge-p0 {
  background: #FEE2E2;
  color: #B91C1C;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.priority-badge-p1 {
  background: #FEF3C7;
  color: #B45309;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}





.priority-badge-p2 {
  background: #FEF3C7;
  color: #D97706;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.priority-badge-p3 {
  background: #DBEAFE;
  color: #1E40AF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.priority-badge-p4 {
  background: #D1FAE5;
  color: #065F46;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.priority-badge-p5 {
  background: #F3F4F6;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.triage-source-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.triage-source-cell svg {
  color: #4B5563;
  width: 18px;
  height: 18px;
}

.triage-customer-cell {
  display: flex;
  flex-direction: column;
}

.triage-customer-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.triage-customer-tier {
  font-size: 12px;
  color: #9CA3AF;
}

.triage-issue-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.triage-issue-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.triage-issue-desc {
  font-size: 12px;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.triage-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
}

.triage-count-text {
  font-size: 13px;
  color: #6B7280;
}

.triage-pagination {
  display: flex;
  gap: 8px;
}

.pagination-btn {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s;
}

.pagination-btn:hover {
  background: #F9FAFB;
}

/* Right Stacked Column */
.dashboard-stacked-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sentiment-index-bar {
  display: flex;
  height: 12px;
  border-radius: 9999px;
  overflow: hidden;
  margin: 16px 0;
}

.sentiment-segment {
  height: 100%;
}

.sentiment-segment.pos {
  background: #10B981;
}

.sentiment-segment.neu {
  background: #F59E0B;
}

.sentiment-segment.neg {
  background: #EF4444;
}

.sentiment-index-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.sentiment-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bg-green {
  background: #10B981;
}

.bg-yellow {
  background: #F59E0B;
}

.bg-red {
  background: #EF4444;
}

.dept-chart-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 20px auto;
}

.dept-chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dept-center-value {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
}

.dept-center-label {
  font-size: 10px;
  font-weight: 700;
  color: #6B7280;
  letter-spacing: 0.5px;
}

.dept-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dept-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #4B5563;
}

.dept-legend-label-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dept-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dept-legend-val {
  font-weight: 600;
  color: #111827;
}

/* Bottom Grid (4 Columns) */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.card-title-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.rating-trend-badge {
  background: #D1FAE5;
  color: #065F46;
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.performance-chart-wrapper {
  height: 180px;
  position: relative;
}

.agent-workload-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.agent-workload-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agent-workload-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.agent-workload-bar-track {
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  border-radius: 9999px;
  overflow: hidden;
}

.agent-workload-bar-fill {
  height: 100%;
  background: #111827;
  border-radius: 9999px;
}

.card-footer-link {
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
}

.card-footer-link a {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.card-footer-link a:hover {
  text-decoration: underline;
}

.health-alert-badge {
  background: #DC2626;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.health-logs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.health-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
}

.health-log-row.alert-item {
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.health-log-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.health-log-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-red-light {
  background: #FEE2E2;
  color: #EF4444;
}

.bg-green-light {
  background: #D1FAE5;
  color: #10B981;
}

.health-log-details {
  display: flex;
  flex-direction: column;
}

.health-log-title {
  font-size: 13px;
  font-weight: 700;
  color: #1F2937;
}

.health-log-desc {
  font-size: 11px;
  color: #6B7280;
}

.health-log-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.health-log-time {
  font-size: 11px;
  color: #9CA3AF;
}

.health-log-btn {
  background: transparent;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  text-transform: uppercase;
}

.health-log-btn:hover {
  background: #FFFFFF;
}

.health-log-ok {
  color: #10B981;
  font-size: 12px;
  font-weight: 700;
}

.system-health-card {
  position: relative;
}

/* Logs Pinned Floating Action Button */
.logs-fab-btn {
  position: absolute;
  bottom: 16px;
  right: -32px;
  /* Floating slightly outside / overlapping the right edge of logs card */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111827;
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
}

.logs-fab-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .logs-fab-btn {
    right: 16px;
    /* Place inside card bounds on narrower layouts */
    bottom: 64px;
  }
}
/* Split Grid for Sentiment, Donut & Severity */
.dashboard-split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .dashboard-split-grid {
    grid-template-columns: 1fr;
  }
}

.dot-orange { background: #F59E0B; }
.segment-green { background: #10B981; }
.segment-orange { background: #F59E0B; }
.segment-red { background: #EF4444; }

/* Custom Wide Split Grid for Channel Matrix & Sentiment Trend */
.dashboard-split-grid-wide {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .dashboard-split-grid-wide {
    grid-template-columns: 1fr;
  }
}
