/* ═══════════════════════════════════════════════════════════════════
   AviJetPro — Design System
   Deep Navy Blue × Slate Gray × Anthracite Dark Gray
   ═══════════════════════════════════════════════════════════════════ */

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

/* ─── 1. Design Tokens ─────────────────────────────────────────── */
:root {
  /* Primary — Deep Navy Blue */
  --navy-950: #030D1A;
  --navy-900: #0A1628;
  --navy-800: #0F2040;
  --navy-700: #142856;
  --navy-600: #1A3370;
  --navy-500: #1E4080;
  --navy-400: #2452A0;
  --navy-300: #3B6BBF;
  --navy-200: #6B9ADF;
  --navy-100: #A8C5F0;

  /* Secondary — Slate Gray */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;

  /* Anthracite Dark */
  --anthracite-950: #080C12;
  --anthracite-900: #10161F;
  --anthracite-800: #161D2A;
  --anthracite-700: #1C2535;
  --anthracite-600: #242E42;
  --anthracite-500: #2D3A52;

  /* Semantic */
  --bg-primary:   #0A1628;     /* Anthracite Dark Gray (Koyu Sayfa Arka Planı) */
  --bg-secondary: #0D1B30;     /* Slightly elevated background */
  --bg-card:      #12233C;     /* Deep Navy Blue (Kartlar ve Üst Bar Arka Planı) */
  --bg-elevated:  #182C4B;     /* Elevated context elements */
  --bg-hover:     #1E3456;     /* Hover Durumu */
  --bg-active:    #244372;     /* Aktif Seçim Durumu */

  --surface-glass: rgba(18, 35, 60, 0.85);
  --surface-glass-light: rgba(24, 44, 75, 0.70);

  --border-subtle: #1E3456;
  --border-default: #2A4670;
  --border-strong: #3B6BBF;
  --border-active: #3B6BBF;

  --text-primary:   #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted:     #64748B;
  --text-disabled:  #475569;

  --accent-primary: #3B6BBF;
  --accent-hover:   #2452A0;
  --accent-glow:    rgba(59, 107, 191, 0.35);

  /* Status */
  --status-success:  #10B981;
  --status-warning:  #F59E0B;
  --status-danger:   #EF4444;
  --status-info:     #3B82F6;
  --status-neutral:  #64748B;

  --status-success-bg: rgba(16, 185, 129, 0.1);
  --status-warning-bg: rgba(245, 158, 11, 0.1);
  --status-danger-bg:  rgba(239, 68, 68, 0.1);
  --status-info-bg:    rgba(59, 130, 246, 0.1);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   0.688rem;
  --text-sm:   0.813rem;
  --text-base: 0.938rem;
  --text-lg:   1.063rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.6), 0 4px 10px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 20px rgba(59, 107, 191, 0.25), 0 0 60px rgba(59, 107, 191, 0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);

  /* Transitions */
  --transition-fast:   100ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;
  --content-max: 100%;

  /* Scrollbar */
  --scrollbar-thumb: var(--slate-700);
  --scrollbar-track: var(--anthracite-900);

  color-scheme: dark;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: var(--radius-full); }
  ::-webkit-scrollbar-track { background: var(--scrollbar-track); }
}

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

/* ─── 3. Layout ────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-shell.sidebar-collapsed {
  /* No sidebar collapsed state needed in topbar layout */
}

/* ─── 4. Sidebar ───────────────────────────────────────────────── */
.sidebar {
  grid-row: 1 / -1;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: width var(--transition-slow);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5);
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--navy-400), var(--navy-300));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 107, 191, 0.4);
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  white-space: nowrap;
}
.sidebar-logo-text strong {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.sidebar-logo-text span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  scrollbar-width: thin;
}

.nav-section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-3) var(--space-3) var(--space-1);
  white-space: nowrap;
  overflow: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  color: var(--text-secondary);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(59, 107, 191, 0.18), rgba(59, 107, 191, 0.08));
  color: var(--navy-200);
  border-color: rgba(59, 107, 191, 0.3);
  box-shadow: inset 3px 0 0 var(--navy-300), var(--shadow-sm);
}

.nav-item-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.nav-item-label {
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav-badge {
  margin-left: auto;
  background: var(--status-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.sidebar-footer {
  padding: var(--space-4) var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-base);
  overflow: hidden;
}
.sidebar-user:hover { background: var(--bg-card); }

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy-400), var(--accent-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: white;
  flex-shrink: 0;
}
.user-info { overflow: hidden; }
.user-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ─── 5. Topbar ────────────────────────────────────────────────── */
.crm-topbar {
  background: var(--bg-card); /* Deep Navy Blue */
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-6);
  position: sticky;
  top: 0;
  height: var(--topbar-height);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.crm-topbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.crm-topbar__logo-icon {
  font-size: 20px;
  animation: logoFloat 4s ease-in-out infinite;
}

.crm-topbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.crm-topbar__logo-text strong {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.crm-topbar__logo-text span {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Navigasyon Alanı */
.crm-topbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--space-4);
  height: 100%;
}

.crm-topbar__nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.crm-topbar__nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  color: #ffffff;
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 500;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  white-space: nowrap;
}

.crm-topbar__nav-link .menu-num {
  opacity: 0.55;
  font-weight: 600;
  font-size: 0.8em;
}

.crm-topbar__nav-link:hover, 
.crm-topbar__nav-item:hover .crm-topbar__nav-link {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border-color: rgba(255,255,255,0.12);
}

.crm-topbar__nav-link--active,
.crm-topbar__nav-item:hover .crm-topbar__nav-link--active {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: rgba(255,255,255,0.18);
  font-weight: 600;
}

/* Dropdown Menü */
.crm-topbar__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  padding: var(--space-2) 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 1010;
}

.crm-topbar__nav-item:hover .crm-topbar__dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.crm-topbar__dropdown-item {
  display: flex;
  align-items: center;
  padding: 6px var(--space-4);
  color: #ffffff;
  text-decoration: none;
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

.crm-topbar__dropdown-item:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  padding-left: calc(var(--space-4) + 4px);
}

.crm-topbar__dropdown-item--inactive {
  color: rgba(255, 255, 255, 0.45) !important;
}

.crm-topbar__dropdown-item--inactive:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.theme-light .crm-topbar__dropdown-item--inactive {
  color: #94a3b8 !important;
}

body.theme-light .crm-topbar__dropdown-item--inactive:hover {
  color: #64748b !important;
}

/* Mega/Geniş Dropdown (Raporlar ve Ayarlar gibi uzun listeler için) */
.crm-topbar__dropdown--mega {
  min-width: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}

.crm-topbar__nav-item:hover .crm-topbar__dropdown--mega {
  transform: translateX(-50%) translateY(0);
}

/* Sağa yaslanacak Ayarlar dropdown'ı — mega transform override */
.crm-topbar__dropdown--right {
  left: auto;
  right: 0;
  transform: translateY(10px);
}
.crm-topbar__nav-item:hover .crm-topbar__dropdown--right {
  transform: translateY(0);
}

.crm-topbar__dropdown-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.crm-topbar__dropdown-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-1);
}

/* Profil ve Sağ Bölüm */
.crm-topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.crm-topbar__user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  transition: background var(--transition-base);
}

.crm-topbar__user:hover {
  background: var(--bg-hover);
}

.crm-topbar__user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 1020;
}

.crm-topbar__user:hover .crm-topbar__user-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition-base);
  position: relative;
}
.topbar-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.topbar-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--status-danger);
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
}

/* Tenant Chip */
.tenant-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(59, 107, 191, 0.12);
  border: 1px solid rgba(59, 107, 191, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--navy-200);
  letter-spacing: 0.02em;
}
.tenant-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--status-success);
  box-shadow: 0 0 6px var(--status-success);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--status-success); }
  50% { opacity: 0.6; box-shadow: 0 0 12px var(--status-success); }
}

/* ─── 6. Main Content ──────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

/* ─── 7. Summary Boxes ─────────────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-card);
}
.summary-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,107,191,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.summary-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.summary-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.summary-icon.blue    { background: rgba(59,107,191,0.15);  }
.summary-icon.green   { background: var(--status-success-bg); }
.summary-icon.amber   { background: var(--status-warning-bg); }
.summary-icon.red     { background: var(--status-danger-bg);  }
.summary-icon.cyan    { background: var(--status-info-bg);    }

.summary-body { flex: 1; min-width: 0; }
.summary-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-1);
}
.summary-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.summary-delta {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: 3px;
}
.summary-delta.up   { color: var(--status-success); }
.summary-delta.down { color: var(--status-danger); }
.summary-delta.neutral { color: var(--text-muted); }

/* ─── 8. Card ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.card-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ─── 9. Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--navy-400), var(--navy-300));
  color: white;
  border-color: var(--navy-300);
  box-shadow: 0 2px 8px rgba(59,107,191,0.35);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--navy-300), var(--navy-200));
  box-shadow: 0 4px 16px rgba(59,107,191,0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-success {
  background: linear-gradient(135deg, #16A34A, #22C55E);
  color: white;
  box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}
.btn-danger {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: white;
  box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}

.btn-sm {
  padding: 5px var(--space-3);
  font-size: var(--text-xs);
}
.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}
.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  font-size: 14px;
}

/* ─── 10. Inputs ───────────────────────────────────────────────── */
.input, .select {
  background: var(--anthracite-800);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  transition: all var(--transition-base);
  width: 100%;
  outline: none;
}
.input::placeholder { color: var(--text-disabled); }
.input:focus, .select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59,107,191,0.15);
  background: var(--anthracite-700);
}
.select { cursor: pointer; appearance: none; }

/* ─── 11. Data Table ───────────────────────────────────────────── */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  background: rgba(10, 22, 40, 0.3);
}

.table-search {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  position: relative;
}
.table-search .input {
  padding-left: var(--space-8);
}
.table-search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.table-action-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

/* Filter Bar — sütun bazlı filtreler */
.table-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 12, 18, 0.3);
  flex-wrap: wrap;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-3);
  background: rgba(59,107,191,0.12);
  border: 1px solid rgba(59,107,191,0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--navy-200);
  font-weight: 500;
}
.filter-chip-remove {
  background: none;
  border: none;
  color: var(--navy-200);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}
.filter-chip-remove:hover { opacity: 1; }

/* Pagination — top + bottom */
.table-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.table-meta-row.bottom {
  border-bottom: none;
  border-top: 1px solid var(--border-subtle);
}

.per-page-selector {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.per-page-btn {
  padding: 4px var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.per-page-btn:hover, .per-page-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.page-btn {
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0 var(--space-2);
}
.page-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.page-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(59,107,191,0.4);
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-btn.ellipsis { cursor: default; background: transparent; border-color: transparent; }

/* Table Container */
.table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table thead tr:first-child th {
  background: var(--anthracite-800);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
}
.data-table thead tr:first-child th:hover { color: var(--text-primary); }
.data-table thead tr:first-child th.sorted-asc::after  { content: ' ↑'; color: var(--navy-300); }
.data-table thead tr:first-child th.sorted-desc::after { content: ' ↓'; color: var(--navy-300); }

/* Column Filter Row */
.data-table thead tr.filter-row th {
  background: rgba(8, 12, 18, 0.5);
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid var(--border-default);
}
.col-filter {
  background: var(--anthracite-700);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px var(--space-2);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast);
}
.col-filter::placeholder { color: var(--text-disabled); font-size: 11px; }
.col-filter:focus { border-color: var(--accent-primary); }

/* Table Body */
.data-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(59,107,191,0.05); }

.data-table tbody td {
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  vertical-align: middle;
}
.data-table tbody td.primary-col {
  color: var(--text-primary);
  font-weight: 600;
}
.data-table tbody td a {
  color: var(--navy-200);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}
.data-table tbody td a:hover { color: var(--navy-100); text-decoration: underline; }

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.badge-success { background: var(--status-success-bg); color: var(--status-success); }
.badge-success::before { background: var(--status-success); box-shadow: 0 0 4px var(--status-success); }
.badge-warning { background: var(--status-warning-bg); color: var(--status-warning); }
.badge-warning::before { background: var(--status-warning); }
.badge-danger  { background: var(--status-danger-bg);  color: var(--status-danger); }
.badge-danger::before  { background: var(--status-danger); box-shadow: 0 0 4px var(--status-danger); }
.badge-info    { background: var(--status-info-bg);    color: var(--status-info); }
.badge-info::before    { background: var(--status-info); }
.badge-neutral { background: rgba(100,116,139,0.15);   color: var(--slate-400); }
.badge-neutral::before { background: var(--slate-500); }

/* Actions Dropdown (last column) */
.actions-cell { text-align: right; width: 48px; }
.actions-dropdown { position: relative; display: inline-block; }
.actions-dropdown.open { z-index: 100; }
.data-table tr:has(.actions-dropdown.open) {
  position: relative;
  z-index: 50 !important;
}
.actions-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast);
}
.actions-btn:hover, .actions-dropdown.open .actions-btn {
  background: var(--bg-elevated);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  min-width: 160px;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transform-origin: top right;
  transition: all var(--transition-base);
}
.dropdown-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-item.danger:hover { background: var(--status-danger-bg); color: var(--status-danger); }
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: var(--space-1) 0; }

/* ─── 12. Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: var(--space-4); opacity: 0.4; }
.empty-state-title { font-size: var(--text-xl); font-weight: 700; color: var(--text-secondary); margin-bottom: var(--space-2); }
.empty-state-desc { font-size: var(--text-sm); color: var(--text-muted); max-width: 360px; margin: 0 auto var(--space-6); }

/* ─── 13. Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 13, 26, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--anthracite-700);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-spring);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: var(--text-xl); font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--status-danger-bg); color: var(--status-danger); border-color: var(--status-danger); }
.modal-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.modal-footer { padding: var(--space-5) var(--space-6); border-top: 1px solid var(--border-subtle); display: flex; gap: var(--space-3); justify-content: flex-end; }

/* ─── 14. Form Group ───────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); }
.form-label span { color: var(--status-danger); margin-left: 2px; }
.form-hint { font-size: var(--text-xs); color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* ─── 15. Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 380px;
  width: 100%;
}
.toast {
  background: var(--anthracite-600);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + var(--space-6)));
  transition: transform var(--transition-spring);
}
.toast.show { transform: translateX(0); }
.toast.hide { transform: translateX(calc(100% + var(--space-6))); opacity: 0; }
.toast-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: var(--text-sm); color: var(--text-primary); margin-bottom: 2px; }
.toast-desc { font-size: var(--text-xs); color: var(--text-muted); }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 0; transition: color var(--transition-fast); flex-shrink: 0; }
.toast-close:hover { color: var(--text-primary); }
.toast.success { border-left: 3px solid var(--status-success); }
.toast.warning { border-left: 3px solid var(--status-warning); }
.toast.error   { border-left: 3px solid var(--status-danger); }
.toast.info    { border-left: 3px solid var(--status-info); }

/* ─── 16. Loading Skeleton ─────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    var(--anthracite-700) 0%,
    var(--anthracite-500) 50%,
    var(--anthracite-700) 100%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius-sm);
}

/* ─── 17. Animations ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.animate-fade-in { animation: fadeIn var(--transition-slow) both; }
.animate-slide-in { animation: slideInRight var(--transition-slow) both; }

/* ─── 18. Divider ──────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border-subtle); }
.divider-v { width: 1px; background: var(--border-subtle); align-self: stretch; }

/* ─── 19. Responsive ───────────────────────────────────────────── */
@media (max-width: 1280px) {
  .crm-topbar__nav-link { font-size: var(--text-sm); padding: 5px 8px; }
  .crm-topbar__dropdown--mega { min-width: 480px; }
}
@media (max-width: 1024px) {
  .crm-topbar__nav { overflow-x: auto; scrollbar-width: none; }
  .crm-topbar__nav::-webkit-scrollbar { display: none; }
  .crm-topbar__nav-link .menu-num { display: none; }
  .crm-topbar__logo-text span { display: none; }
  .user-info { display: none; }
  .tenant-chip { display: none; }
}
@media (max-width: 768px) {
  .crm-topbar { flex-wrap: wrap; height: auto; padding: var(--space-2) var(--space-4); gap: var(--space-2); }
  .crm-topbar__nav { width: 100%; order: 3; overflow-x: auto; padding-bottom: var(--space-2); }
  .crm-topbar__actions { order: 2; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .main-content { padding: var(--space-4); }
  .crm-topbar__dropdown--mega { min-width: 300px; grid-template-columns: 1fr; }
}

/* ─── 20. Utility ──────────────────────────────────────────────── */
.text-primary   { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-success   { color: var(--status-success) !important; }
.text-warning   { color: var(--status-warning) !important; }
.text-danger    { color: var(--status-danger) !important; }
.text-info      { color: var(--status-info) !important; }
.mono           { font-family: var(--font-mono) !important; }
.bold           { font-weight: 700 !important; }
.nowrap         { white-space: nowrap !important; }
.truncate       { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only        { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ─── 21. Settings Layout & Tabs ────────────────────────────────── */
.settings-container {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  min-height: calc(100vh - 120px);
}

.settings-sidebar {
  width: 280px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  flex-shrink: 0;
  position: sticky;
  top: 90px;
}

.settings-sidebar-header {
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.settings-sidebar-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  width: 100%;
}

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

.settings-nav-item.active {
  background: var(--bg-active);
  color: var(--text-primary);
  font-weight: 600;
  border-left: 3px solid var(--color-primary);
  padding-left: calc(var(--space-4) - 3px);
}

.settings-main {
  flex: 1;
  min-width: 0;
}

/* Settings Forms & Components */
.settings-section-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.settings-section-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.settings-grid-permissions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.permission-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.permission-card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.permission-card-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  cursor: pointer;
}

.permission-card-item input {
  cursor: pointer;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
}

.toggle-switch-input {
  display: none;
}

.toggle-switch-slider {
  width: 36px;
  height: 20px;
  background: var(--bg-hover);
  border-radius: 10px;
  position: relative;
  transition: background var(--transition-fast);
}

.toggle-switch-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-fast);
}

.toggle-switch-input:checked + .toggle-switch-slider {
  background: var(--status-success);
}

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

.appearance-color-picker {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  border-color: white;
  transform: scale(1.1);
}

.settings-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

/* Responsive Styles for Settings */
@media (max-width: 1024px) {
  .settings-container {
    flex-direction: column;
    align-items: stretch;
  }
  .settings-sidebar {
    width: 100%;
    position: static;
  }
  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scrollbar-width: thin;
  }
  .settings-nav::-webkit-scrollbar {
    height: 4px;
  }
  .settings-nav::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 2px;
  }
  .settings-nav-item {
    white-space: nowrap;
    width: auto;
  }
  .settings-nav-item.active {
    border-left: none;
    border-bottom: 3px solid var(--color-primary);
    padding-left: var(--space-4);
    padding-bottom: calc(var(--space-3) - 3px);
  }
}

/* ─── 22. Uçuş Takvimi (2j) ─────────────────────────────────────── */
.fc-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-6);
  min-height: calc(100vh - 120px);
  align-items: flex-start;
}
@media (max-width: 1024px) {
  .fc-container {
    grid-template-columns: 1fr;
  }
}
.fc-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fc-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}
.fc-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
}
.fc-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.fc-nav-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.fc-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  padding: 1px;
}
.fc-weekday-header {
  background: var(--bg-elevated);
  padding: var(--space-3) var(--space-1);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fc-day-cell {
  background: var(--bg-elevated);
  padding: var(--space-2) var(--space-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 85px;
  gap: 4px;
}
.fc-day-cell:hover {
  background: var(--bg-hover);
}
.fc-day-cell.other-month {
  opacity: 0.25;
}
.fc-day-cell.today {
  box-shadow: inset 0 0 0 1px var(--color-primary);
}
.fc-day-cell.selected {
  background: var(--bg-active);
  box-shadow: inset 0 0 0 2px var(--color-primary);
}
.fc-day-num {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}
.fc-day-cell.selected .fc-day-num {
  color: var(--text-primary);
}
.fc-flights-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}
.fc-month-flight-strip {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 5px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
  color: #ffffff !important;
}
.fc-month-flight-strip:hover {
  filter: brightness(1.15);
  transform: translateY(-0.5px);
  box-shadow: var(--shadow-sm);
}
.fc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Timeline styles */
.fc-timeline-container {
  position: relative;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 480px;
  overflow-y: auto;
}
.fc-timeline-hours {
  position: relative;
  border-left: 2px solid var(--border-subtle);
  margin-left: 60px;
  padding-left: var(--space-4);
  height: 900px; /* 18 hours * 50px */
}
.fc-timeline-hour-row {
  position: relative;
  height: 50px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.fc-timeline-hour-label {
  position: absolute;
  left: -76px;
  width: 50px;
  text-align: right;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1;
  top: -6px;
}
.fc-flights-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
.fc-flight-block {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 42px;
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}
.fc-flight-block:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.15);
}
.fc-flight-block-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 500;
  color: white;
  width: 100%;
}
.fc-flight-block-icao {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
}
.fc-flight-block-details {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.fc-flight-block-time {
  font-family: var(--font-mono);
  font-weight: 600;
}
.fc-flight-block-info {
  opacity: 0.9;
  font-weight: 600;
}
/* Status Colors HSL */
.fc-status-planned {
  background: hsl(210, 75%, 48%) !important;
  border-color: hsl(210, 75%, 43%) !important;
  color: #ffffff !important;
}
.fc-status-active {
  background: hsl(145, 60%, 40%) !important;
  border-color: hsl(145, 60%, 35%) !important;
  color: #ffffff !important;
}
.fc-status-completed {
  background: hsl(220, 12%, 45%) !important;
  border-color: hsl(220, 12%, 40%) !important;
  color: #ffffff !important;
}
.fc-status-cancelled {
  background: hsl(0, 65%, 48%) !important;
  border-color: hsl(0, 65%, 43%) !important;
  color: #ffffff !important;
}
.fc-status-quote {
  background: hsl(270, 50%, 45%) !important;
  border-color: hsl(270, 50%, 40%) !important;
  color: #ffffff !important;
}

.fc-dot-planned { background: hsl(210, 75%, 48%); }
.fc-dot-active { background: hsl(145, 60%, 40%); }
.fc-dot-completed { background: hsl(220, 12%, 45%); }
.fc-dot-cancelled { background: hsl(0, 65%, 48%); }
.fc-dot-quote { background: hsl(270, 50%, 45%); }

/* Filters */
.fc-filter-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}
.fc-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  align-items: flex-end;
}
/* Detail panel */
.fc-detail-card {
  grid-column: span 2;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-2);
}
@media (max-width: 1024px) {
  .fc-detail-card {
    grid-column: span 1;
  }
}
.fc-detail-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fc-detail-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
}
.fc-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
}
.fc-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fc-detail-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fc-detail-val {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* Tam Ay Görünümü (Full Month) ve Görünüm Seçici Kuralları */
.fc-container.fc-mode-full-month {
  grid-template-columns: 1fr;
}
.fc-container.fc-mode-full-month .fc-detail-card {
  grid-column: span 1;
}
.fc-container.fc-mode-full-month .fc-day-cell {
  min-height: 120px;
}
.fc-month-flight-strip.fc-large {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.fc-month-flight-strip.fc-large .fc-strip-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  opacity: 0.85;
}
.fc-month-flight-strip.fc-large .fc-strip-route {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-month-flight-strip.fc-large .fc-strip-details {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-view-selector-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.fc-legend-bar {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  flex-wrap: wrap;
  align-items: center;
}
.fc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}
.fc-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}





