/* Dahuk Design System - CSS Variables */
:root {
  --bg-color: #0b0f19;
  --bg-gradient: radial-gradient(circle at top, #141c2f 0%, #0b0f19 100%);
  --panel-bg: rgba(20, 30, 48, 0.45);
  --border-light: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(6, 182, 212, 0.5);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  animation: float 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  top: -100px;
  left: 10%;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  bottom: 10%;
  right: 10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-green);
  top: 40%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 40px) scale(1.15); }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Dynamic Wizard Layout */
.wizard-header {
  text-align: center;
  margin-bottom: 40px;
}

.wizard-header .logo-container {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 15px;
}

.wizard-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
}

.wizard-header h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.wizard-header p {
  color: var(--text-secondary);
}

.wizard-steps {
  display: flex;
  justify-content: space-around;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.step {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding-bottom: 10px;
  transition: var(--transition-smooth);
}

.step.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.step.active::after {
  content: '';
  position: absolute;
  bottom: -21px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.wizard-pane {
  display: none;
}

.wizard-pane.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

.pane-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Dashboard Nav & Header */
.dashboard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 15px 30px;
  background: rgba(20, 30, 48, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 100;
}

.dashboard-nav:hover {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 8px 32px 0 rgba(6, 182, 212, 0.05);
}

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

.nav-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
  transition: var(--transition-smooth);
}

.nav-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.6));
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-btn.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* Metrics Dashboard */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card h3 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.metric-card .value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-card .subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Layout Grid */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.col-span-2 {
  grid-column: span 3;
}

/* Form Styling */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.form-group textarea {
  resize: vertical;
}

.form-group small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-label {
  font-size: 0.95rem;
  user-select: none;
}

/* Store Tabs inside Wizard */
.store-toggle-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.store-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.store-tab.active {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.store-pane {
  display: none;
}

.store-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Dashboard Tab Panels */
.dashboard-tab-content {
  display: none;
}

.dashboard-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

/* Settings Grids */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form-section {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: 15px;
}

.form-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent-purple);
  padding-left: 10px;
}

.col-span-2-grid {
  grid-column: span 2;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.store-col-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 20px;
  border-radius: 12px;
}

.store-col-card h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--accent-cyan);
}

/* Slider Controls */
.slider-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.slider-container input[type="range"] {
  flex: 1;
  accent-color: var(--accent-cyan);
}

.slider-container span {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-cyan);
  min-width: 30px;
}

/* Buttons */
.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-color);
  font-weight: 600;
}

.btn-primary:hover {
  background: #22d3ee;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-success {
  background: var(--accent-green);
  color: var(--bg-color);
  font-weight: 600;
}

.btn-success:hover {
  background: #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

/* Live Conversations Table */
.card-header {
  margin-bottom: 25px;
}

.card-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.card-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.search-bar-container {
  margin-bottom: 20px;
}

.search-bar-container input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.search-bar-container input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

.table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

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

.data-table th,
.data-table td {
  padding: 16px 20px;
  font-size: 0.95rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px !important;
}

/* Platform badge */
.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-whatsapp {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-messenger {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-instagram {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Bot Active Status Indicator */
.bot-status-span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

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

.bot-status-dot.active {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.bot-status-dot.inactive {
  background: var(--accent-red);
  box-shadow: 0 0 6px var(--accent-red);
}

/* Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 34px;
  border: 1px solid var(--border-light);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--accent-cyan);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Overlay & Modals */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner-container {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dynamic notification banner */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  padding: 16px 24px;
  border-radius: 12px;
  z-index: 10000;
  transition: var(--transition-smooth);
}

.notification.error {
  border-color: var(--accent-red);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.notification.hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

/* Utility Animations */
.hidden {
  display: none !important;
}

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

/* Knowledge Base FAQ Cards */
.kb-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.kb-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-cyan);
}

.kb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.kb-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-cyan);
}

.kb-card-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: pre-wrap;
}

.kb-card-delete {
  background: transparent;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.kb-card-delete:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1);
}

/* Telemetry Badge types */
.badge-incoming_message {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-ai_response {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-tool_call {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.badge-api_error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Metric card hover & SVGs */
.metric-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(6, 182, 212, 0.1);
}

.metric-icon {
  width: 22px;
  height: 22px;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.metric-card:hover .metric-icon {
  transform: scale(1.1) rotate(5deg);
  opacity: 1;
}

.metric-icon.cyan { color: var(--accent-cyan); stroke: var(--accent-cyan); }
.metric-icon.purple { color: var(--accent-purple); stroke: var(--accent-purple); }
.metric-icon.green { color: var(--accent-green); stroke: var(--accent-green); }
.metric-icon.blue { color: #3b82f6; stroke: #3b82f6; }
.metric-icon.orange { color: #f97316; stroke: #f97316; }
.metric-icon.pink { color: #ec4899; stroke: #ec4899; }

/* Login Screen Styles */
.login-card {
  max-width: 420px;
  width: 90%;
  padding: 40px;
  margin: auto;
  border-color: rgba(6, 182, 212, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.15);
  transform: translateY(20px);
  animation: slideUpLogin 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.login-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.login-logo {
  max-height: 75px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.4));
  animation: floatLogo 3.5s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Pagination Styling */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 15px 0 5px;
  border-top: 1px solid var(--border-light);
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
  color: var(--text-primary);
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pagination-pages {
  display: flex;
  gap: 6px;
}

.pagination-page-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pagination-page-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.pagination-page-btn.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

/* Order Status Badges & Address Previews */
.badge-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-processing {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.address-preview {
  display: inline-block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
}

.status-select {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background-color: var(--panel-bg);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.status-select.badge-pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.status-select.badge-processing {
  background-color: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.3);
}

.status-select.badge-completed {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
}

.status-select.badge-cancelled {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.3);
}

/* --- Live Chat Drawer --- */
.chat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.chat-drawer.hidden {
  display: none;
}

.chat-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 12, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.chat-drawer-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  border-radius: 0;
  border-left: 1px solid var(--border-light);
  border-top: none;
  border-bottom: none;
  border-right: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  pointer-events: auto;
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
}

.chat-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(20, 30, 48, 0.4);
}

.chat-customer-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.chat-bot-toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.chat-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(90deg);
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(11, 15, 25, 0.45);
}

/* Scrollbar styles */
.chat-messages-container::-webkit-scrollbar {
  width: 6px;
}

.chat-messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Chat Bubbles */
.chat-bubble-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-bubble-wrapper.user {
  align-self: flex-start;
}

.chat-bubble-wrapper.model {
  align-self: flex-end;
}

.chat-bubble {
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.chat-bubble:hover {
  transform: translateY(-2px);
}

.chat-bubble-wrapper.user .chat-bubble {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}

.chat-bubble-wrapper.model .chat-bubble {
  background: rgba(168, 85, 247, 0.2);
  color: var(--text-primary);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-bottom-right-radius: 4px;
}

.chat-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 6px;
  opacity: 0.8;
}

.chat-bubble-wrapper.user .chat-meta {
  align-self: flex-start;
  margin-left: 4px;
}

.chat-bubble-wrapper.model .chat-meta {
  align-self: flex-end;
  margin-right: 4px;
}

/* Chat Input Footer */
.chat-reply-form {
  padding: 24px 30px;
  border-top: 1px solid var(--border-light);
  background: rgba(20, 30, 48, 0.45);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-reply-form textarea {
  width: 100%;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  resize: none;
  transition: var(--transition-smooth);
}

.chat-reply-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
  background: rgba(11, 15, 25, 0.7);
}

.chat-send-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
  border: none;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  transition: var(--transition-smooth);
}

.chat-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.chat-btn-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-action-btn {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-action-btn:hover {
  background: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* --- WhatsApp Web Style Chat Panel Layout --- */
.whatsapp-container {
  padding: 0 !important;
  overflow: hidden;
  height: 700px;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.whatsapp-layout {
  display: flex;
  height: 100%;
  width: 100%;
}

/* Left Sidebar */
.whatsapp-sidebar {
  width: 350px;
  min-width: 320px;
  height: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.4);
}

.whatsapp-sidebar-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.whatsapp-sidebar-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.chats-count-badge {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 12px;
}

.whatsapp-search-container {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.search-input-wrapper input {
  width: 100%;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 16px 10px 38px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
  pointer-events: none;
}

/* Chat list scroll area */
.whatsapp-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

/* Chat Card */
.chat-card {
  display: flex;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.chat-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.chat-card.active {
  background: rgba(6, 182, 212, 0.08);
}

.chat-card.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-cyan);
}

.chat-card-avatar {
  margin-right: 12px;
  display: flex;
  align-items: center;
  width: 45px;
  height: 45px;
  flex-shrink: 0;
}

.avatar-initials {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.avatar-initials.platform-whatsapp {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25);
}

.avatar-initials.platform-messenger {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.avatar-initials.platform-instagram {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.25);
}

.chat-card-details {
  flex: 1;
  min-width: 0; /* allows text truncation */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.chat-card-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-card-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

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

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

.chat-card-actions {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

/* Right Main Window */
.whatsapp-chat-window {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(11, 15, 25, 0.6);
  position: relative;
}

/* Welcome Screen */
.whatsapp-welcome-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: rgba(15, 23, 42, 0.25);
}

.welcome-content {
  max-width: 450px;
}

.logo-wrapper {
  width: 120px;
  height: 120px;
  background: rgba(6, 182, 212, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 1px solid rgba(6, 182, 212, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.welcome-icon {
  color: var(--accent-cyan);
}

.whatsapp-welcome-screen h1 {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.whatsapp-welcome-screen p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.encryption-notice {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Active Chat Interface */
.whatsapp-active-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.whatsapp-chat-header {
  height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 30, 48, 0.4);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-header-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  display: flex;
  align-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.chat-header-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px 0;
}

.chat-header-meta {
  display: flex;
  align-items: center;
}

.whatsapp-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bot-toggle-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Scroll area for active messages - WhatsApp theme backgrounds */
.whatsapp-active-chat .chat-messages-container {
  background: radial-gradient(circle, rgba(11, 20, 26, 0.95) 0%, rgba(6, 12, 16, 0.98) 100%);
  position: relative;
  /* WhatsApp signature background pattern doodle opacity trick */
}

/* Add custom background styling for chat message bubbles matching WhatsApp Web */
.whatsapp-active-chat .chat-bubble-wrapper.user {
  align-self: flex-start;
  margin-right: auto;
}

.whatsapp-active-chat .chat-bubble-wrapper.model {
  align-self: flex-end;
  margin-left: auto;
}

.whatsapp-active-chat .chat-bubble-wrapper.user .chat-bubble {
  background: #202c33;
  color: #e9edef;
  border: none;
  border-radius: 8px;
  border-top-left-radius: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.whatsapp-active-chat .chat-bubble-wrapper.model .chat-bubble {
  background: #005c4b; /* WhatsApp Dark Mode Green */
  color: #e9edef;
  border: none;
  border-radius: 8px;
  border-top-right-radius: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.whatsapp-active-chat .chat-bubble-wrapper.user .chat-meta {
  align-self: flex-end;
  margin-top: 4px;
}

.whatsapp-active-chat .chat-bubble-wrapper.model .chat-meta {
  align-self: flex-end;
  margin-top: 4px;
}

/* Input form footer area - WhatsApp panel style */
.whatsapp-reply-form {
  padding: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #202c33;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-direction: row;
}

.whatsapp-reply-form textarea {
  flex: 1;
  background: #2a3942;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  color: #e9edef;
  font-size: 0.95rem;
  resize: none;
  outline: none;
  height: 40px;
  line-height: 20px;
  box-shadow: none;
}

.whatsapp-reply-form textarea:focus {
  border-color: transparent;
  box-shadow: none;
  background: #2a3942;
}

.whatsapp-send-btn {
  background: var(--accent-cyan);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.whatsapp-send-btn:hover {
  background: #0891b2;
  transform: scale(1.05);
}

.whatsapp-send-btn svg {
  color: #fff;
}

/* Pagination mini styling for sidebar */
.pagination-mini {
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0;
  justify-content: center;
  gap: 5px;
}

.pagination-mini .page-btn {
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.toggle-switch.small {
  width: 32px;
  height: 18px;
}

.toggle-switch.small .toggle-slider::before {
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
}

.toggle-switch.small input:checked + .toggle-slider::before {
  transform: translateX(14px);
}

/* --- Lead Pills for Orders Panel --- */
.lead-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 320px;
}

.lead-pill {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.2;
}

.lead-pill strong {
  font-weight: 700;
  opacity: 0.85;
}

.lead-pill-type {
  background: rgba(168, 85, 247, 0.1); /* Purple */
  color: var(--accent-purple);
  border-color: rgba(168, 85, 247, 0.2);
}

.lead-pill-location {
  background: rgba(6, 182, 212, 0.1); /* Cyan */
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.2);
}

.lead-pill-size {
  background: rgba(59, 130, 246, 0.1); /* Blue */
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
}

.lead-pill-scope {
  background: rgba(236, 72, 153, 0.1); /* Pink */
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.2);
}

.lead-pill-budget {
  background: rgba(16, 185, 129, 0.1); /* Green */
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.2);
}

.lead-pill-timeline {
  background: rgba(245, 158, 11, 0.1); /* Amber */
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.2);
}

.lead-pill-default {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

/* --- Premium Status Select styling --- */
.status-select {
  padding: 6px 28px 6px 12px !important;
  border-radius: 20px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 10px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.status-select.badge-pending {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: #f59e0b !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.status-select.badge-processing {
  background-color: rgba(99, 102, 241, 0.15) !important;
  color: #6366f1 !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

.status-select.badge-completed {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: var(--accent-green) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.status-select.badge-cancelled {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: var(--accent-red) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* --- Description Popup Modal --- */
.desc-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.desc-modal.hidden {
  display: none;
}

.desc-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 12, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.desc-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 10;
  overflow: hidden;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.desc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.desc-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.desc-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.desc-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.desc-modal-body {
  padding: 24px;
}

/* Ensure the layout of the pills inside the modal looks fantastic */
.desc-modal-body .lead-pills-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.desc-modal-body .lead-pill {
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-left: 3px solid;
}

.desc-modal-body .lead-pill-type {
  border-left-color: var(--accent-purple);
}

.desc-modal-body .lead-pill-location {
  border-left-color: var(--accent-cyan);
}

.desc-modal-body .lead-pill-size {
  border-left-color: #3b82f6;
}

.desc-modal-body .lead-pill-scope {
  border-left-color: #ec4899;
}

.desc-modal-body .lead-pill-budget {
  border-left-color: var(--accent-green);
}

.desc-modal-body .lead-pill-timeline {
  border-left-color: #f59e0b;
}

.desc-modal-body .lead-pill-default {
  border-left-color: var(--text-secondary);
}

/* Sidebar & Modern Dashboard Layout Redesign */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 24px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

/* Sidebar Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-logo img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
}

.sidebar-logo .logo-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sidebar Menu */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition-smooth);
}

.sidebar-btn svg {
  flex-shrink: 0;
}

.sidebar-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-btn.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.15);
  font-weight: 600;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* Content Area */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 40px;
  min-height: 100vh;
  width: calc(100% - 260px);
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

/* Device Responsiveness Media Queries */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    width: 250px;
  }
  
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 20px;
    padding-top: 80px; /* space for mobile header */
  }
  
  .mobile-header {
    display: flex !important;
  }
}

