/* WASI WhatsApp CRM - Design System & Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #4AC959;
  --color-primary-50: #EDFAEE;
  --color-primary-100: #C7EECC;
  --color-primary-200: #ACE6B3;
  --color-primary-300: #86DB90;
  --color-primary-400: #6ED47A;
  --color-primary-500: #4AC959;
  --color-primary-600: #43B751;
  --color-primary-700: #358F3F;
  --color-primary-800: #296F31;
  --color-primary-900: #1F5425;
  --color-dark: #143518;
  --color-heading: #304742;
  --bg-app: #F6F9F6;
  --bg-card: #FFFFFF;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  --border-tertiary: #E2E8F0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-login: 0 50px 100px rgba(0, 0, 0, 0.08);
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 72px;
  --header-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Authentication Page Styles */
.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.auth-banner {
  width: 50%;
  background-color: rgba(67, 183, 81, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 450px;
  text-align: center;
}

.auth-card-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #F6F9F6;
  box-shadow: var(--shadow-login);
}

.auth-card {
  width: 100%;
  max-width: 425px;
  background: white;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-tertiary);
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 201, 89, 0.2);
}

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.btn-primary {
  width: 100%;
  height: 40px;
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--color-primary-600);
}

.btn-secondary {
  height: 38px;
  padding: 0 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

/* App Shell Layout */
#app-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Navigation Sidebar - Dark Forest Green Theme matching app.kwic.in */
.sidebar {
  width: var(--sidebar-width);
  background: #0E2916;
  border-right: 1px solid #163B20;
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid #163B20;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  color: #C2D8C7;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background-color: #173E21;
  color: #FFFFFF;
}

.nav-item.active {
  background-color: #1B4E28;
  color: #4AC959;
  font-weight: 600;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-bottom {
  padding: 0.75rem;
  border-top: 1px solid #163B20;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar.collapsed .nav-text {
  display: none;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

/* Header & Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-app);
}

.top-header {
  height: var(--header-height);
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-sidebar-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  border-radius: 6px;
}

.toggle-sidebar-btn:hover {
  background: #F1F5F9;
}

.org-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-app);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.icon-badge-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #EF4444;
  border-radius: 50%;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Account Settings Sub-navigation & Layout matching screenshot */
.settings-layout {
  display: flex;
  height: 100vh;
  background: var(--bg-app);
  overflow: hidden;
}

.secondary-sidebar {
  width: 240px;
  background: #FFFFFF;
  border-right: 1px solid var(--border-light);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.sec-nav-header {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}

.sec-nav-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding-left: 8px;
}

.sec-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sec-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sec-nav-item:hover {
  background: #F3F4F6;
  color: #111827;
}

.sec-nav-item.active {
  background: var(--color-primary-100);
  color: var(--color-primary-900);
  font-weight: 600;
}

.beta-badge {
  background: #EF4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: auto;
}

.settings-main-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
}

/* WhatsApp Channel Header Card */
.channel-status-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.channel-info-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wa-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner Profile Form + Preview Grid */
.profile-workspace-grid {
  display: grid;
  grid-template-columns: 160px 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.inner-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inner-tab-btn {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4B5563;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.inner-tab-btn:hover {
  background: #F3F4F6;
}

.inner-tab-btn.active {
  background: var(--color-primary-100);
  color: var(--color-primary-900);
  font-weight: 600;
}

.profile-form-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Live WhatsApp Profile Preview Card on Right */
.whatsapp-preview-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0E2916;
  color: #4AC959;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border: 3px solid #DCFCE7;
}

.preview-details-list {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.25rem;
  font-size: 0.825rem;
  color: #4B5563;
}

.preview-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.preview-detail-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6B7280;
  margin-top: 2px;
}

/* Reports Sub-navigation & Analytics Layout matching screenshot https://app.kwic.in/app/reports/message */
.reports-layout {
  display: flex;
  height: 100vh;
  background: var(--bg-app);
  overflow: hidden;
}

.reports-sec-sidebar {
  width: 220px;
  background: #FFFFFF;
  border-right: 1px solid var(--border-light);
  padding: 1.25rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.metrics-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card-simple {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.metric-card-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-card-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
}

.chart-card-box {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: #4B5563;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}


.details-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.details-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Templates Grid Cards */
.template-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.template-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.template-badge.approved {
  background: #DCFCE7;
  color: #15803D;
}

.template-badge.pending {
  background: #FEF3C7;
  color: #B45309;
}

/* Wallet & Recharge Balance Cards */
.wallet-card {
  background: linear-gradient(135deg, #0E2916 0%, #173E21 100%);
  color: white;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 10px 25px rgba(14, 41, 22, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Live Chat Widget Customizer Box */
.livechat-preview-box {
  width: 320px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.livechat-header {
  background: var(--color-primary-600);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
}


/* Page Views */
.view-container {
  display: none;
  height: 100%;
}

.view-container.active {
  display: flex;
  flex-direction: column;
}

/* Page Header */
.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Dashboard Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-primary-50);
  color: var(--color-primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Smart Inbox 3-Column Layout */
.inbox-layout {
  display: flex;
  height: calc(100vh - var(--header-height) - 3rem);
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.chat-sidebar {
  width: 320px;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.chat-filter-tabs {
  display: flex;
  padding: 10px;
  border-bottom: 1px solid var(--border-light);
  gap: 4px;
}

.filter-tab {
  flex: 1;
  padding: 6px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
}

.filter-tab.active {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chat-item:hover, .chat-item.active {
  background: var(--color-primary-50);
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #475569;
}

.chat-meta {
  flex: 1;
  min-width: 0;
}

.chat-name-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

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

.chat-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #FAFDFB;
}

.chat-header {
  height: 60px;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}

.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.msg-in {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-top-left-radius: 2px;
}

.msg-out {
  align-self: flex-end;
  background: var(--color-primary-100);
  color: var(--color-primary-900);
  border-top-right-radius: 2px;
}

.msg-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
}

.chat-input-bar {
  padding: 12px 1.25rem;
  background: white;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-tertiary);
  padding: 0 16px;
  outline: none;
  font-size: 0.875rem;
}

/* Data Tables */
.table-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-header-tools {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-tertiary);
  background: var(--bg-app);
  width: 280px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
}

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

.data-table th {
  background: #F8FAFC;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-main);
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.active {
  background: #DCFCE7;
  color: #15803D;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
}

.close-modal-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.toast {
  background: #1F2937;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Chat filter dropdown */
.filter-dropdown {
  position: relative;
}

.filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 8px;
  min-width: 160px;
  display: none;
  z-index: 20;
}

.filter-dropdown-panel.open {
  display: block;
}

.filter-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: none;
  font-size: 0.85rem;
  cursor: pointer;
  color: #374151;
}

.filter-option:hover {
  background: #F3F4F6;
}

.filter-option.active {
  background: var(--color-primary-100);
  color: var(--color-primary-900);
  font-weight: 600;
}

/* Inner tab placeholder panels */
.inner-tab-panel {
  display: none;
}

.inner-tab-panel.active {
  display: block;
}
