/* Interakt SPA — Main Stylesheet
   Implements modern premium branding, light theme colors, glassmorphic elevations, micro-animations, and core shell layout.
*/

:root {
  /* HSL Tailored Brand Colors */
  --primary-hue: 142;
  --primary: hsl(var(--primary-hue), 70%, 49%);       /* #25D366 (WhatsApp Green) */
  --primary-dark: hsl(var(--primary-hue), 76%, 31%);  /* #128C7E (Meta Green Dark) */
  --primary-light: hsl(var(--primary-hue), 70%, 94%); /* Light WhatsApp Green */
  
  --accent-hue: 239;
  --accent: hsl(var(--accent-hue), 84%, 67%);        /* #6366F1 (Instagram Indigo) */
  --accent-light: hsl(var(--accent-hue), 84%, 94%);

  --surface: #ffffff;
  --background: #f8f9fa;
  --border: #e5e7eb;
  
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;

  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --error: #ef4444;
  --error-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* Sizing tokens */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 68px;
  --header-height: 64px;
  
  /* Font Stack */
  --font-interface: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-brand: 'Outfit', var(--font-interface);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  --shadow-premium: 0 20px 25px -5px rgba(0,0,0,0.04), 0 10px 10px -5px rgba(0,0,0,0.02);
}

/* Reset and Foundations */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-interface);
  background-color: var(--background);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  height: 100vh;
}

/* Custom premium scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Layout Structures */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* LEFT SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
}

.sidebar-collapse-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
}
.sidebar-collapse-btn:hover {
  background-color: var(--background);
  color: var(--text-primary);
}

.sidebar-profile-card {
  padding: 16px;
  margin: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.sidebar-profile-card .avatar {
  width: 42px;
  height: 42px;
  background-color: var(--primary);
  color: white;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.sidebar-profile-card .profile-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.sidebar-profile-card .profile-info .status-indicator {
  font-size: 11px;
  color: var(--primary-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sidebar-profile-card .profile-info .status-indicator::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-nav-item:hover {
  background-color: var(--background);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.sidebar-nav-item .badge {
  position: absolute;
  right: 12px;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border);
  margin: 12px 16px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.agent-profile .avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}
.agent-profile h6 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.agent-profile select {
  font-size: 11px;
  color: var(--text-secondary);
  border: none;
  background: none;
  padding: 2px 0;
  cursor: pointer;
  outline: none;
}

/* Collapsed Sidebar overrides */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}
.sidebar.collapsed .brand-text,
.sidebar.collapsed .sidebar-profile-card .profile-info,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .agent-details,
.sidebar.collapsed .sidebar-nav-item .badge {
  display: none;
}
.sidebar.collapsed .sidebar-profile-card {
  padding: 8px;
  margin: 10px auto;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.sidebar.collapsed .sidebar-nav-item {
  justify-content: center;
  padding: 12px;
}
.sidebar.collapsed .sidebar-nav-item span.material-icons-round {
  margin: 0;
}

/* CONTENT CONTAINER WRAPPER */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* TOP HEADER BAR */
.header {
  height: var(--header-height);
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.header h1 {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
}

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

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box span.material-icons-round {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}
.search-box input {
  width: 280px;
  height: 38px;
  border-radius: 99px;
  border: 1px solid var(--border);
  padding-left: 38px;
  padding-right: 16px;
  font-size: 13px;
  background-color: var(--background);
  transition: all 0.2s ease;
  outline: none;
}
.search-box input:focus {
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-light);
  width: 320px;
}

.header-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-btn:hover {
  background-color: var(--background);
  color: var(--text-primary);
}
.header-btn .notification-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background-color: var(--error);
  border-radius: 50%;
  border: 1.5px solid var(--surface);
}

.header-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border);
}

.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* MAIN CONTENT ROUTED PANELS */
.main-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  position: relative;
}

.app-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.app-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Premium Card Panels */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-brand);
}

/* Premium buttons UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.btn-whatsapp {
  background-color: var(--primary);
  color: white;
}
.btn-whatsapp:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-indigo {
  background-color: var(--accent);
  color: white;
}
.btn-indigo:hover {
  background-color: hsl(var(--accent-hue), 84%, 55%);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  background-color: var(--background);
  color: var(--text-primary);
  border-color: var(--text-muted);
}
.btn-outline.active {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--accent);
}
.btn-ghost:hover {
  background-color: var(--accent-light);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-close-modal, .btn-close-drawer {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-close-modal:hover, .btn-close-drawer:hover {
  background-color: var(--border);
  color: var(--text-primary);
}

.w-full { width: 100% !important; }
.w-72 { width: 18rem !important; }
.w-32 { width: 8rem !important; }
.flex-1 { flex: 1 !important; }
.flex-2 { flex: 2 !important; }
.flex-3 { flex: 3 !important; }
.mt-2 { margin-top: 8px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-6 { margin-top: 24px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-6 { margin-bottom: 24px !important; }
.ml-2 { margin-left: 8px !important; }
.mr-2 { margin-right: 8px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.border-b { border-bottom: 1px solid var(--border) !important; }
.border-t { border-top: 1px solid var(--border) !important; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-row { display: flex; flex-direction: row; }
.gap-2 { gap: 8px; }
.bg-background { background-color: var(--background) !important; }
.font-mono { font-family: Courier, monospace; }
.font-bold { font-weight: 700 !important; }

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 99px;
}
.badge-success { background-color: var(--success-light); color: #065f46; }
.badge-warning { background-color: var(--warning-light); color: #92400e; }
.badge-error { background-color: var(--error-light); color: #991b1b; }
.badge-indigo { background-color: var(--accent-light); color: #3730a3; }
.badge-muted { background-color: #f3f4f6; color: var(--text-secondary); }

/* Table styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
}
.table td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tr:hover td {
  background-color: var(--background);
}

/* Forms and Inputs */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row .form-group {
  flex: 1;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0 12px;
  font-size: 14px;
  background-color: var(--surface);
  transition: all 0.2s ease;
  outline: none;
}
textarea {
  height: auto;
  padding: 10px 12px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.helper-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* Toggle Switches */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--text-muted);
  transition: .3s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
}
input:checked + .slider {
  background-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(22px);
}
.slider.round {
  border-radius: 22px;
}
.slider.round:before {
  border-radius: 50%;
}

/* MODAL OVERLAYS */
.modal-overlay, .drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.modal-card {
  background-color: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  width: 500px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-large {
  width: 800px;
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* SLIDING DRAWER PANELS */
.drawer-overlay {
  justify-content: flex-end;
}
.drawer {
  background-color: var(--surface);
  height: 100vh;
  width: 400px;
  max-width: 100vw;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  animation: drawerSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ONBOARDING FLOW PANEL STYLING */
.onboarding-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  overflow-y: auto;
  padding: 40px 20px;
}

.onboarding-card {
  background-color: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  width: 720px;
  max-width: 100%;
  padding: 32px;
  margin: auto;
}

.onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.onboarding-steps-indicator {
  display: flex;
  gap: 8px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
}
.step-dot.active {
  background-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.onboarding-step-pane {
  display: none;
  animation: obSlideIn 0.3s ease;
}
.onboarding-step-pane.active {
  display: block;
}

@keyframes obSlideIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.onboarding-step-pane h3 {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.onboarding-form {
  margin-top: 24px;
}

/* Password Input Eye Icon Styling */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  padding-right: 40px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-secondary);
  user-select: none;
  font-size: 20px;
  transition: color 0.2s ease;
  z-index: 10;
}

.password-toggle-btn:hover {
  color: var(--primary);
}

/* Password Compliance Indicator Panel */
.password-compliance-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.compliance-item .compliance-icon {
  font-size: 18px;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.compliance-item.fulfilled {
  color: var(--success);
  font-weight: 500;
}

.compliance-item.fulfilled .compliance-icon {
  color: var(--success);
  transform: scale(1.15);
}

.ob-connect-options {
  margin-top: 20px;
}
.ob-option-card {
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ob-option-card.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
}
.ob-option-card .option-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 6px;
}
.ob-option-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.ob-profile-builder-split {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

/* WhatsApp Mobile Mockup preview widget */
.ob-whatsapp-mock-panel, .template-mockup-frame {
  width: 250px;
  background-color: #efeae2; /* Whatsapp chat bg color */
  border-radius: 16px;
  border: 6px solid #1f2937;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.phone-mockup-header, .phone-frame-header {
  background-color: #075e54; /* Meta green toolbar */
  color: white;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-mockup-header .mockup-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}
.phone-mockup-header .mockup-profile-info h5 {
  font-size: 11px;
  font-weight: 600;
}
.phone-mockup-header .mockup-profile-info span {
  font-size: 8px;
  opacity: 0.8;
}

.phone-mockup-body, .phone-frame-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 11px;
}

.mock-bubble-info {
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 8px;
}
.mock-bubble-info span {
  font-size: 16px;
}

.ob-team-invite-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.ob-success-confetti {
  text-align: center;
  padding: 20px 0;
}
.ob-success-confetti .text-6xl {
  font-size: 56px;
}

.ob-checklist-list {
  background-color: var(--background);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 16px;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.checklist-item:last-child {
  border-bottom: none;
}
.checklist-item p {
  font-size: 14px;
}

/* Global Colors Helpers */
.text-whatsapp { color: var(--primary) !important; }
.text-indigo { color: var(--accent) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-error { color: var(--error) !important; }

.bg-whatsapp-light { background-color: var(--primary-light) !important; }
.bg-indigo-light { background-color: var(--accent-light) !important; }
.bg-warning-light { background-color: var(--warning-light) !important; }
.bg-success-light { background-color: var(--success-light) !important; }
.bg-error-light { background-color: var(--error-light) !important; }

/* Workspace Settings Page Layout and Components */
.settings-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
}

.settings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px !important;
}

.settings-side-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.settings-side-tab:hover {
  background-color: var(--background);
  color: var(--text-primary);
}

.settings-side-tab.active {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.settings-content-card {
  padding: 24px !important;
}

.settings-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.settings-pane.active {
  display: block;
}

/* Billing limits styling overrides */
.billing-plan-info {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.billing-progress-bar {
  background-color: var(--border);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.billing-progress-fill {
  background: linear-gradient(90deg, var(--accent), hsl(var(--accent-hue), 84%, 55%));
  border-radius: 99px;
  height: 100%;
  transition: width 0.5s ease;
}

.billing-meter {
  margin-top: 16px;
}

/* GORGEOUS AUTH LOGIN PAGE STYLING */
.auth-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  overflow-y: auto;
  padding: 24px;
}

.auth-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
  width: 420px;
  max-width: 100%;
  padding: 36px;
  color: var(--text-primary);
  animation: authScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authScaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.auth-header h2 {
  font-family: var(--font-brand);
  color: var(--text-primary);
}

.auth-helper-link:hover,
.auth-footer-prompt a:hover {
  color: var(--primary-dark) !important;
  text-decoration: underline !important;
}

.auth-form-pane {
  display: none;
}

.auth-form-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.auth-card label {
  color: var(--text-primary) !important;
  font-size: 13px;
  font-weight: 600;
}

.auth-card input {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 100%;
  height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.auth-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.auth-card .divider {
  position: relative;
  margin: 20px 0;
  color: var(--text-muted) !important;
}
.auth-card .divider::before, .auth-card .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.auth-card .divider::before { left: 0; }
.auth-card .divider::after { right: 0; }

/* GORGEOUS PROFILE DROPDOWN MENU STYLING */
.profile-dropdown-card {
  position: absolute;
  top: 48px;
  right: 0;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
  width: 240px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: dropdownSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px;
}

@keyframes dropdownSlideDown {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.profile-dropdown-header {
  padding: 12px;
  margin-bottom: 8px;
}

.avatar-circle-large {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.profile-dropdown-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-secondary) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.profile-dropdown-item:hover {
  background-color: var(--background) !important;
  color: var(--text-primary) !important;
}

.profile-dropdown-item.active-status-row {
  cursor: default;
}
.profile-dropdown-item.active-status-row:hover {
  background: none !important;
}

.status-select-clean {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  height: auto !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  cursor: pointer;
  outline: none;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border);
  margin: 6px 0;
}

