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

:root {
  /* Color Palette - Dark Premium */
  --bg-primary: #050508;
  --bg-secondary: #0b0d16;
  --bg-card: rgba(15, 18, 32, 0.7);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(0, 242, 254, 0.5);
  
  /* Accent Colors */
  --accent-purple: #8a2be2;
  --accent-cyan: #00f2fe;
  --accent-emerald: #00f5a0;
  --accent-coral: #ff6b6b;
  --accent-orange: #ff9f43;
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  
  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  --grad-text: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  --grad-emerald: linear-gradient(135deg, #00b894 0%, var(--accent-emerald) 100%);
  --grad-coral: linear-gradient(135deg, #ff4757 0%, var(--accent-coral) 100%);

  /* UI Tokens */
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.15);
  --shadow-purple-glow: 0 0 25px rgba(138, 43, 226, 0.2);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --blur-amount: blur(12px);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout System */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(5, 5, 8, 0.85);
  border-bottom-color: rgba(138, 43, 226, 0.2);
}

nav {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand SVG Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  transition: var(--transition-smooth);
}

.logo-container:hover .logo-icon {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25)) brightness(1.1);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-brand);
  color: #050508;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.3);
  filter: brightness(1.1);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

/* Glassmorphism Cards */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.card-glass:hover {
  border-color: rgba(138, 43, 226, 0.25);
  box-shadow: var(--shadow-purple-glow);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

/* Toggle Switch */
.switch-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.switch-input {
  display: none;
}

.switch-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background-color: var(--text-muted);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.switch-input:checked + .switch-slider {
  background: var(--grad-brand);
}

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

/* Section : Hero */
.hero-section {
  padding-top: 180px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.12) 0%, rgba(0, 242, 254, 0.05) 50%, rgba(0,0,0,0) 100%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Section : Services */
.services-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  text-align: left;
}

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(138, 43, 226, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.2);
  color: var(--accent-cyan);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

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

/* Section : Portfolio */
.portfolio-section {
  padding: 100px 0;
}

.portfolio-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.portfolio-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.portfolio-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.portfolio-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.portfolio-preview {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-preview-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--accent-purple);
  filter: blur(50px);
  opacity: 0.25;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.portfolio-preview-emblem {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 140px;
}

/* Section : Contact */
.contact-section {
  padding: 100px 0 150px;
}

.contact-card {
  max-width: 650px;
  margin: 0 auto;
}

.contact-form button {
  width: 100%;
  margin-top: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: #020204;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* ==========================================================================
   DASHBOARD SPECIFIC STYLES
   ========================================================================== */
.db-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.db-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.db-title-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.db-badge {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.db-main {
  padding: 3rem 0 6rem;
}

/* Options Bar */
.options-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.options-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.options-toggles {
  display: flex;
  gap: 2rem;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.kpi-card {
  padding: 1.75rem;
}

.kpi-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.kpi-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.kpi-card.net {
  background: rgba(138, 43, 226, 0.1);
  border-color: rgba(138, 43, 226, 0.3);
}

.kpi-card.net .kpi-value {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Thresholds / Gauges Section */
.thresholds-card {
  margin-bottom: 3rem;
}

.thresholds-title {
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
}

.gauge-group {
  margin-bottom: 1.5rem;
}

.gauge-group:last-child {
  margin-bottom: 0;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.gauge-name {
  font-weight: 600;
}

.gauge-details {
  color: var(--text-secondary);
}

.gauge-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.gauge-fill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  background: var(--grad-brand);
  transition: width 0.6s cubic-bezier(0.1, 0.8, 0.25, 1);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.gauge-fill.warning {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ff6b81 100%);
  box-shadow: 0 0 10px rgba(255, 159, 67, 0.3);
}

.gauge-fill.danger {
  background: var(--grad-coral);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.gauge-alert {
  font-size: 0.8rem;
  color: var(--accent-coral);
  margin-top: 0.25rem;
  display: none;
  font-weight: 500;
}

/* Double Column Section */
.dashboard-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
}

.add-invoice-card {
  height: fit-content;
}

.invoices-card {
  display: flex;
  flex-direction: column;
}

.card-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filters-group {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
  background: var(--grad-brand);
  color: #050508;
  border-color: transparent;
}

/* Table Design */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.15);
  margin-bottom: 2rem;
  position: relative;
}

/* Watermark CSS integration */
.table-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background-image: url('../assets/lk_studio_logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.paid {
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.2);
  color: var(--accent-emerald);
}

.status-badge.pending {
  background: rgba(255, 159, 67, 0.1);
  border: 1px solid rgba(255, 159, 67, 0.2);
  color: var(--accent-orange);
}

/* Table Action Buttons */
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.btn-delete {
  color: var(--text-muted);
}

.btn-delete:hover {
  color: var(--accent-coral);
  background: rgba(255, 107, 107, 0.1);
}

.btn-toggle-paid {
  color: var(--text-secondary);
}

.btn-toggle-paid:hover {
  color: var(--accent-emerald);
  background: rgba(0, 245, 160, 0.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Backup and Sync Panel */
.backup-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-file-input {
  display: none;
}

/* Custom Select Dropdown Styling */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .portfolio-preview {
    height: 250px;
  }
  
  .nav-links {
    display: none; /* In a real layout we would have a burger, but we keep it simple or compact */
  }
  
  .options-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ACCESSIBILITY & SKIP LINKS
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 2rem;
  background: var(--grad-brand);
  color: #050508;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s ease;
  outline: none;
}

.skip-link:focus {
  top: 0;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

/* High Contrast Focus Outline for all elements */
*:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Keyboard Shortcut Badge */
kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  margin-left: 0.5rem;
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
  text-transform: uppercase;
}

/* ==========================================================================
   SECRETARY INTERFACE (JULIE) - THREE COLUMN LAYOUT
   ========================================================================== */
.sec-body {
  height: 100vh;
  overflow: hidden;
}

.sec-container {
  display: grid;
  grid-template-columns: 280px 1fr 360px;
  height: calc(100vh - 80px);
  margin-top: 80px;
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
}

.sec-main {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 1. LEFT SIDEBAR */
nav.sec-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 2rem;
  height: 100%;
  overflow-y: auto;
}

.sec-nav-group h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.sec-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sec-nav-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

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

.sec-nav-btn.active {
  background: rgba(138, 43, 226, 0.12);
  border-left: 3px solid var(--accent-purple);
  color: var(--text-primary);
}

.sec-count {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sec-nav-btn.active .sec-count {
  background: var(--accent-purple);
  color: white;
}

/* Sync/Account Status list */
.account-selector-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.account-selector-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.account-selector-item.active {
  border-color: rgba(0, 242, 254, 0.2);
  background: rgba(0, 242, 254, 0.04);
  color: var(--text-primary);
}

.account-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.account-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
  position: relative;
}

.account-dot.online {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.account-dot.syncing {
  background-color: var(--accent-cyan);
  animation: pulse-sync 1.5s infinite;
}

@keyframes pulse-sync {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px var(--accent-cyan); }
  100% { transform: scale(1); opacity: 0.4; }
}

/* 2. CENTRAL MESSAGING CONTAINER (DOUBLE PANEL) */
.sec-main-content {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: 100%;
  overflow: hidden;
}

/* Left portion: Message List */
.sec-inbox-pane {
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(5, 5, 8, 0.4);
}

.sec-pane-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sec-pane-title {
  font-size: 1.25rem;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sec-search-wrapper {
  position: relative;
}

.sec-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.sec-search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.sec-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Scrollable message cards list */
.sec-mail-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.50rem;
}

.sec-mail-card {
  background: rgba(15, 18, 32, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.sec-mail-card:hover {
  background: rgba(15, 18, 32, 0.65);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.sec-mail-card.selected {
  background: rgba(138, 43, 226, 0.08);
  border-color: rgba(138, 43, 226, 0.4);
}

.sec-mail-card.unread {
  border-left: 3px solid var(--accent-cyan);
  background: rgba(255, 255, 255, 0.02);
}

.sec-mail-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sec-sender {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.sec-mail-card.unread .sec-sender {
  color: white;
}

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

.sec-subject {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sec-mail-card.unread .sec-subject {
  color: var(--text-primary);
  font-weight: 600;
}

.sec-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sec-card-badges {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

/* Classification Tags/Badges */
.badge-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-tag.urgent {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: var(--accent-coral);
}

.badge-tag.flightledger {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
}

.badge-tag.lkstudio {
  background: rgba(138, 43, 226, 0.15);
  border: 1px solid rgba(138, 43, 226, 0.3);
  color: var(--accent-purple);
}

.badge-tag.ludenskith {
  background: rgba(255, 159, 67, 0.15);
  border: 1px solid rgba(255, 159, 67, 0.3);
  color: var(--accent-orange);
}

.badge-tag.facture {
  background: rgba(0, 245, 160, 0.15);
  border: 1px solid rgba(0, 245, 160, 0.3);
  color: var(--accent-emerald);
}

.badge-tag.spam {
  background: rgba(71, 85, 105, 0.25);
  border: 1px solid rgba(71, 85, 105, 0.4);
  color: var(--text-muted);
}

.badge-tag.gmail {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: var(--accent-coral);
}

/* Star Indicator */
.sec-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  padding: 0.2rem;
}

.sec-star-btn:hover, .sec-star-btn.starred {
  color: #ffd700;
}

/* Right portion: Email Reading Pane */
.sec-read-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(2, 2, 4, 0.5);
  position: relative;
}

.sec-read-actions {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sec-action-left {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sec-read-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem;
}

.sec-mail-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.sec-mail-subject {
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.sec-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sec-sender-details {
  display: flex;
  flex-direction: column;
}

.sec-sender-name {
  font-weight: 600;
  color: var(--text-primary);
}

.sec-sender-address {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sec-to-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.sec-mail-body {
  line-height: 1.7;
  color: #cbd5e1;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.sec-attachments-area {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
}

.sec-attachments-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.sec-attachment-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sec-attachment-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
}

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

.sec-attachment-name {
  font-size: 0.85rem;
  font-weight: 500;
}

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

/* Quick Response AI suggestion Panel */
.sec-quick-reply-panel {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sec-quick-reply-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sec-quick-reply-options {
  display: flex;
  gap: 1rem;
}

.sec-quick-btn {
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--text-primary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.sec-quick-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* Write Draft Form */
.sec-draft-panel {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: none; /* Toggled */
  flex-direction: column;
  gap: 1rem;
}

.sec-draft-textarea {
  width: 100%;
  background: rgba(5, 5, 8, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
}

.sec-draft-textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}

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

/* Briefing mode cards */
.briefing-scrollable {
  flex: 1 1 auto;
  height: 100%;
  overflow-y: auto;
  padding: 2.5rem;
}

.briefing-welcome {
  margin-bottom: 2.5rem;
}

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.briefing-card {
  padding: 1.5rem;
}

.briefing-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.briefing-task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.briefing-task-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.briefing-task-bullet {
  color: var(--accent-cyan);
  margin-top: 0.15rem;
}

.briefing-task-text {
  color: var(--text-secondary);
}

/* Activity Log details */
.activity-log-wrapper {
  background: rgba(5, 5, 8, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  height: 200px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.8rem;
  padding: 1rem;
  color: var(--text-secondary);
}

.activity-log-line {
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.activity-log-time {
  color: var(--accent-cyan);
  margin-right: 0.5rem;
}

.activity-log-line.alert {
  color: var(--accent-coral);
}

.activity-log-line.success {
  color: var(--accent-emerald);
}

/* 3. RIGHT PANEL: AI AGENT JULIE CONSOLE */
.sec-agent-sidebar {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.agent-console-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Glowing Avatar */
.agent-avatar-container {
  position: relative;
  width: 50px;
  height: 50px;
}

.agent-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-purple) 0%, #050508 100%);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 2;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.agent-avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.agent-avatar-container.idle .agent-avatar-glow {
  animation: glow-pulse-idle 2.5s infinite ease-in-out;
}

.agent-avatar-container.thinking .agent-avatar-glow {
  animation: glow-pulse-thinking 1s infinite linear;
}

.agent-avatar-container.listening .agent-avatar-glow {
  animation: glow-pulse-listening 1.2s infinite ease-in-out;
}

@keyframes glow-pulse-idle {
  0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.3); }
  50% { box-shadow: 0 0 20px 6px rgba(138, 43, 226, 0.25); }
  100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.3); }
}

@keyframes glow-pulse-thinking {
  0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); transform: rotate(0deg); border-radius: 50%; }
  50% { box-shadow: 0 0 25px 8px rgba(0, 242, 254, 0.2), 0 0 10px 2px rgba(138, 43, 226, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); transform: rotate(360deg); }
}

@keyframes glow-pulse-listening {
  0% { box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.4); }
  50% { box-shadow: 0 0 25px 12px rgba(0, 245, 160, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.4); }
}

.agent-status-wrapper {
  display: flex;
  flex-direction: column;
}

.agent-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
}

.agent-status {
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.agent-avatar-container.listening + .agent-status-wrapper .agent-status {
  color: var(--accent-emerald);
}

/* Voice waveform style */
.voice-wave {
  display: none;
  align-items: center;
  gap: 3px;
  height: 15px;
  margin-top: 0.25rem;
}

.agent-avatar-container.listening + .agent-status-wrapper .voice-wave,
.agent-avatar-container.speaking + .agent-status-wrapper .voice-wave {
  display: flex;
}

.voice-bar {
  width: 2px;
  height: 100%;
  background: var(--accent-emerald);
  border-radius: 1px;
}

.agent-avatar-container.listening + .agent-status-wrapper .voice-bar {
  animation: bounce-wave-list 0.8s infinite ease-in-out alternate;
}

.agent-avatar-container.speaking + .agent-status-wrapper .voice-bar {
  background: var(--accent-cyan);
  animation: bounce-wave-speak 0.8s infinite ease-in-out alternate;
}

.voice-bar:nth-child(2) { animation-delay: 0.15s; }
.voice-bar:nth-child(3) { animation-delay: 0.3s; }
.voice-bar:nth-child(4) { animation-delay: 0.45s; }
.voice-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes bounce-wave-list {
  0% { height: 2px; }
  100% { height: 16px; }
}

@keyframes bounce-wave-speak {
  0% { height: 2px; }
  100% { height: 12px; }
}

/* Chat History */
.agent-chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
  position: relative;
}

.chat-msg.agent {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.user {
  background: var(--grad-brand);
  color: #050508;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  font-weight: 500;
}

.chat-msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: right;
  display: block;
}

.chat-msg.user .chat-msg-time {
  color: rgba(5, 5, 8, 0.5);
}

/* Chat Input Bar */
.agent-chat-input-wrapper {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.agent-input-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.agent-input-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.agent-input-btn.active {
  background: rgba(255, 107, 107, 0.12);
  color: var(--accent-coral);
  border-color: var(--accent-coral);
  animation: mic-pulse 1.5s infinite;
}

@keyframes mic-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); box-shadow: 0 0 10px rgba(255, 107, 107, 0.4); }
  100% { transform: scale(1); }
}

.agent-text-input {
  flex: 1;
  background: rgba(5, 5, 8, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.agent-text-input:focus {
  outline: none;
  border-color: var(--accent-purple);
}

/* Suggestions of commands overlay in chat history */
.agent-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0 1.5rem 1rem;
}

.agent-sug-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.agent-sug-btn:hover {
  background: rgba(138, 43, 226, 0.06);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

/* ==========================================================================
   KEYBOARD HELPER OVERLAY
   ========================================================================== */
.kbd-help-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.kbd-help-card {
  max-width: 600px;
  width: 90%;
  padding: 2.5rem;
}

.kbd-help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.kbd-help-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.kbd-help-label {
  color: var(--text-secondary);
}

/* ==========================================================================
   ROUTING CONFIGURATION EDITOR STYLE (SETTINGS)
   ========================================================================== */
.rules-config-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.rule-config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
}

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

.rule-config-btn-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.rule-config-btn-delete:hover {
  color: var(--accent-coral);
}

/* ==========================================================================
   ADDITIONAL GLOBAL RESPONSIVE RULES FOR WORKSPACE
   ========================================================================== */
@media (max-width: 1280px) {
  .sec-container {
    grid-template-columns: 240px 1fr 300px;
  }
  .sec-main-content {
    grid-template-columns: 320px 1fr;
  }
}

@media (max-width: 1024px) {
  .sec-container {
    grid-template-columns: 60px 1fr; /* Collapse sidebar to icon list, hide right agent panel */
  }
  .sec-agent-sidebar {
    display: none;
  }
}

/* ==========================================================================
   JASKIER PREMIUM DESIGN SYSTEM ADDITIONS
   ========================================================================== */

/* Onglets Jaskier (Tabs) */
.jaskier-tabs {
  display: flex;
  background: rgba(5, 5, 8, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.jaskier-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.jaskier-tab-btn.active {
  background: rgba(255, 159, 67, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 159, 67, 0.3);
  box-shadow: 0 0 12px rgba(255, 159, 67, 0.1);
  font-weight: 600;
}

/* Section Options Ligne Éditoriale */
.editorial-options-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.editorial-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.editorial-checkbox-label:hover {
  background: rgba(255, 159, 67, 0.03);
  border-color: rgba(255, 159, 67, 0.2);
}

.editorial-checkbox-input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  outline: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.editorial-checkbox-input:checked {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 0 8px rgba(255, 159, 67, 0.4);
}

.editorial-checkbox-input:checked::before {
  content: "✓";
  color: #050508;
  font-size: 0.7rem;
  font-weight: 900;
}

.editorial-checkbox-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.editorial-checkbox-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.editorial-checkbox-desc {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* Statistiques de Vol Tactiques (FlightLedger) */
.flight-stats-panel {
  background: rgba(11, 13, 22, 0.4);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.flight-stats-panel-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.flight-stats-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
}

.flight-stats-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.flight-stats-full {
  grid-column: 1 / span 2;
}

/* Console de Prévisualisation Premium Jaskier */
.jaskier-preview-wrapper {
  margin-top: 1.25rem;
  background: #030305;
  border: 1px solid rgba(255, 159, 67, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px rgba(255, 159, 67, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.jaskier-preview-header {
  background: rgba(255, 159, 67, 0.05);
  border-bottom: 1px solid rgba(255, 159, 67, 0.15);
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jaskier-preview-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.jaskier-preview-badge {
  font-family: monospace;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(255, 159, 67, 0.1);
  border: 1px solid rgba(255, 159, 67, 0.2);
  border-radius: 4px;
  color: var(--accent-orange);
}

.jaskier-preview-body {
  padding: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: radial-gradient(circle at top left, rgba(255, 159, 67, 0.02) 0%, transparent 60%);
  min-height: 180px;
  max-height: 350px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Style de rendu Markdown en HTML pour la preview */
.jaskier-preview-body h1, .jaskier-preview-body h2, .jaskier-preview-body h3 {
  color: var(--accent-orange);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}
.jaskier-preview-body h1 { font-size: 1.2rem; border-bottom: 1px solid rgba(255,159,67,0.2); padding-bottom: 0.2rem; }
.jaskier-preview-body h2 { font-size: 1.05rem; }
.jaskier-preview-body h3 { font-size: 0.95rem; }
.jaskier-preview-body strong { color: #ffffff; font-weight: 600; }
.jaskier-preview-body ul, .jaskier-preview-body ol { margin-left: 1.25rem; margin-bottom: 0.75rem; }
.jaskier-preview-body li { margin-bottom: 0.25rem; }

.jaskier-preview-footer {
  padding: 0.75rem;
  background: rgba(5, 5, 8, 0.8);
  border-top: 1px solid rgba(255, 159, 67, 0.1);
  display: flex;
  gap: 0.75rem;
}

.jaskier-preview-btn {
  flex: 1;
  padding: 0.55rem;
  font-size: 0.75rem;
}

/* Indicateur de saisie (dots de chargement chat) */
.typing-indicator-msg {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem !important;
  width: fit-content;
}

.typing-dots span {
  animation: typing-bounce 1.4s infinite both;
  display: inline-block;
  font-size: 1.5rem;
  line-height: 0.5;
  color: var(--text-muted);
}

.typing-dots span:nth-child(2) {
  animation-delay: .2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes typing-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
    color: var(--accent-cyan);
  }
}

