/* =============================================================
   Web Security Scanner — Modern Design System & Production CSS
   Mistral Warm Palette • Vector UI • Mobile-First Responsive
   Sıfır Dış CDN Bağımlılığı • Cloudflare Rocket Loader Uyumlu
============================================================= */

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

:root {
  --ink: #0F172A;
  --ink-deep: #1F1F1F;
  --slate: #475569;
  --stone: #64748B;
  --muted: #94A3B8;
  --hairline: #E2E8F0;
  --hairline-strong: #CBD5E1;
  --canvas: #FFFDF9;
  --surface: #FFFFFF;
  --cream: #FFF8E0;
  --cream-soft: #FFFAEB;
  --beige-border: #E6D5A8;
  --orange: #FA520F;
  --orange-hover: #E04406;
  --orange-deep: #CC3A05;
  --orange-soft: #FFF7ED;
  --orange-border: #FED7AA;
  --amber: #F59E0B;
  --amber-deep: #D97706;
  --emerald: #10B981;
  --emerald-deep: #059669;
  --rose: #F43F5E;
  --rose-deep: #E11D48;
  --sky: #0EA5E9;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 3px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-orange: 0 6px 20px -3px rgba(250, 82, 15, 0.35), 0 2px 6px -1px rgba(250, 82, 15, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--canvas);
  background-image:
    radial-gradient(at 0% 0%, rgba(250, 82, 15, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.font-editorial { font-family: 'Newsreader', Georgia, serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Mistral Signature Sunset Stripe */
.sunset-stripe {
  background: linear-gradient(90deg, #FA520F 0%, #FF8105 25%, #FFA110 50%, #FFD06A 75%, #FFF8E0 100%);
  height: 4px;
  width: 100%;
}

/* Renk Yardımcıları */
.text-mistral-ink { color: var(--ink); }
.text-mistral-slate { color: var(--slate); }
.text-mistral-stone { color: var(--muted); }
.text-mistral-orange { color: var(--orange); }
.bg-mistral-orange { background-color: var(--orange); }
.border-mistral-orange { border-color: var(--orange); }
.border-mistral-hairline { border-color: var(--hairline); }

/* =============================================================
   1. ÜST GEZİNME (HEADER) — MOBİL UYUMLU GLASSMORPHISM
============================================================= */
header, .app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  height: auto !important;
  min-height: 4.25rem;
}

.brand-mark {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #FA520F 0%, #EA580C 60%, #D97706 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -2px rgba(250, 82, 15, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* =============================================================
   2. MODERN BUTON MİMARİSİ & SEGMENTED CONTROLS
============================================================= */
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

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

.btn svg, .icon-svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.875rem;
  min-height: 3rem;
}

.btn-lg svg {
  width: 1.125rem;
  height: 1.125rem;
}

.btn-sm {
  padding: 0.4375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.625rem;
}

.btn-xs {
  padding: 0.3125rem 0.625rem;
  font-size: 0.6875rem;
  border-radius: 0.5rem;
}

/* Primary CTA (Mistral Orange Gradient) */
.btn-primary,
#unified-scan-btn {
  background: linear-gradient(135deg, #FA520F 0%, #EA580C 55%, #D97706 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: 1px solid rgba(204, 58, 5, 0.3) !important;
  box-shadow: var(--shadow-orange), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-primary:hover:not(:disabled),
#unified-scan-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #E04406 0%, #C2410C 60%, #B45309 100%) !important;
  box-shadow: 0 8px 24px -3px rgba(250, 82, 15, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
}

/* Secondary / Surface Button */
.btn-secondary {
  background-color: #FFFFFF !important;
  color: var(--ink) !important;
  border: 1px solid var(--hairline-strong) !important;
  box-shadow: var(--shadow-xs) !important;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #F8FAFC !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
}

/* Warm Cream / AI Button */
.btn-ai,
#header-ai-btn {
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%) !important;
  color: #78350F !important;
  border: 1px solid #FCD34D !important;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  font-weight: 700 !important;
  border-radius: 0.75rem;
}

.btn-ai:hover:not(:disabled),
#header-ai-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #FEF3C7 0%, #FDE68A 100%) !important;
  border-color: #F59E0B !important;
  transform: translateY(-1px);
}

/* Dark Ink Button */
.btn-dark {
  background-color: var(--ink) !important;
  color: #FFFFFF !important;
  border: 1px solid #1E293B !important;
  box-shadow: var(--shadow-xs) !important;
}

.btn-dark:hover:not(:disabled) {
  background-color: #1E293B !important;
}

/* Danger Button */
.btn-danger {
  background-color: var(--rose-deep) !important;
  color: #FFFFFF !important;
  border: 1px solid #BE123C !important;
}

.btn-danger:hover:not(:disabled) {
  background-color: #BE123C !important;
}

/* Segmented Control (Lite vs Full, Export group) */
.segmented-group {
  display: inline-flex;
  align-items: center;
  background-color: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  padding: 0.1875rem;
  gap: 0.125rem;
}

.segmented-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.6875rem;
  border-radius: 0.5625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.16s ease;
  cursor: pointer;
}

.segmented-item:hover {
  color: #0F172A;
}

.segmented-item.is-active-orange {
  background: linear-gradient(135deg, #FA520F 0%, #EA580C 100%);
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(250, 82, 15, 0.25);
}

.segmented-item.is-active-emerald {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

/* =============================================================
   3. KOMUTA MERKEZİ (COMMAND CENTER) & GİRDİ ALANLARI
============================================================= */
.command-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(250, 82, 15, 0.06) 0%, rgba(245, 158, 11, 0.03) 35%, transparent 65%),
    #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.omni-dock {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1.125rem;
  padding: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.omni-dock:focus-within {
  background-color: #FFFFFF;
  border-color: rgba(250, 82, 15, 0.45);
  box-shadow: 0 8px 24px -6px rgba(250, 82, 15, 0.12);
}

.target-input-wrapper {
  position: relative;
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  min-width: 0;
}

.target-input-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #64748B;
  z-index: 2;
  user-select: none;
}

.target-input-wrapper:focus-within .target-input-icon {
  color: var(--orange);
}

#unified-target-input,
#unified-dir-input,
#target-input {
  border: 1px solid #CBD5E1 !important;
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-radius: 0.875rem !important;
  padding: 0.875rem 1rem 0.875rem 2.875rem !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84375rem;
  line-height: 1.4;
  width: 100%;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-xs);
}

#unified-dir-input {
  padding-top: 0.6875rem !important;
  padding-bottom: 0.6875rem !important;
  font-size: 0.78125rem;
}

#unified-target-input:focus,
#unified-dir-input:focus,
#target-input:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(250, 82, 15, 0.14) !important;
  outline: none !important;
}

.modern-field {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  color: var(--ink);
  transition: all 0.15s ease;
}

.modern-field:focus {
  background-color: #FFFFFF;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(250, 82, 15, 0.12);
  outline: none;
}

/* =============================================================
   4. ETKİLEŞİMLİ ANALİZ MODÜL KARTLARI (10-ITEM MATRIX)
============================================================= */
.module-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  border: 1px solid #E2E8F0;
  background-color: #FFFFFF;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
}

.module-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.module-card:has(input:checked),
.module-card.is-checked {
  border-color: rgba(250, 82, 15, 0.45);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.55) 0%, #FFFFFF 100%);
  box-shadow: 0 2px 10px -2px rgba(250, 82, 15, 0.12);
}

.module-card-ai {
  border-color: #FDE68A;
  background-color: #FFFFFF;
}

.module-card-ai:hover {
  border-color: #F59E0B;
}

.module-card-ai:has(input:checked),
.module-card-ai.is-checked {
  border-color: #F59E0B;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%);
  box-shadow: 0 2px 12px -2px rgba(245, 158, 11, 0.2);
}

.module-icon-box {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background-color: #F1F5F9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.module-card:has(input:checked) .module-icon-box,
.module-card.is-checked .module-icon-box {
  background-color: #FFEDD5;
  color: var(--orange);
}

.module-card-ai .module-icon-box {
  background-color: #FEF3C7;
  color: #B45309;
}

.module-card-ai:has(input:checked) .module-icon-box,
.module-card-ai.is-checked .module-icon-box {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
}

input[type="checkbox"] {
  accent-color: var(--orange);
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.375rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* =============================================================
   5. SONUÇ METRİK KARTLARI (KPI BENTO) & MODERN SEKMELER
============================================================= */
.kpi-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.25rem;
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.kpi-icon-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Modern Yatay Kaydırılabilir Sekme Çubuğu */
.modern-tabs-nav {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  background-color: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.modern-tabs-nav::-webkit-scrollbar {
  display: none;
}

.detail-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.5625rem 0.9375rem;
  border-radius: 0.75rem;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-tab-btn svg {
  width: 0.9375rem;
  height: 0.9375rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.detail-tab-btn:hover {
  color: #0F172A;
  background-color: rgba(226, 232, 240, 0.5);
}

.detail-tab-btn.active {
  color: var(--orange) !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(250, 82, 15, 0.28) !important;
  box-shadow: 0 2px 6px -1px rgba(250, 82, 15, 0.12) !important;
  font-weight: 700 !important;
}

.detail-tab-btn.active svg {
  opacity: 1;
  color: var(--orange);
}

/* =============================================================
   6. KOYU ZEMİNLİ TERMİNAL VE KOD BLOKLARI (KONTRAST KORUMASI)
============================================================= */
.bg-stone-900,
.bg-stone-950,
.bg-black,
.bg-black\/60,
#ai-thought-log,
#strix-log,
pre.bg-stone-900,
pre.bg-stone-950 {
  background-color: #0F172A !important;
  color: #F1F5F9 !important;
}

.bg-stone-950,
#ai-thought-log,
#strix-log {
  background-color: #090D16 !important;
}

.bg-stone-900 code,
.bg-stone-950 code,
.bg-black\/60 code,
pre.bg-stone-900 code,
pre.bg-stone-950 code {
  color: inherit !important;
  background: transparent !important;
}

#ai-thought-log,
#strix-log {
  font-family: 'JetBrains Mono', monospace !important;
  border-radius: 0.75rem;
  border: 1px solid #1E293B;
}

#strix-log {
  color: #6EE7B7 !important;
}

/* =============================================================
   7. MOBİL VE RESPONSIVE YERLEŞİM İYİLEŞTİRMELERİ
============================================================= */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }

.kpi-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .kpi-bento-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 639px) {
  .command-hero {
    border-radius: 1.25rem;
    padding: 1.125rem !important;
  }
  .omni-dock {
    padding: 0.625rem;
  }
  #unified-scan-btn {
    width: 100%;
    padding: 0.875rem 1.25rem !important;
  }
  .kpi-card {
    padding: 0.875rem;
    border-radius: 1rem;
  }
  .mobile-full-width {
    width: 100%;
  }
  .mobile-scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mobile-scroll-x::-webkit-scrollbar {
    display: none;
  }
}

/* =============================================================
   8. TAM TAILWIND YARDIMCI SINIF PARİTESİ (POLYFILLS)
============================================================= */
.inset-y-0 { top: 0px; bottom: 0px; }
.left-0 { left: 0px; }
.pl-3\.5 { padding-left: 0.875rem; }
.pl-10 { padding-left: 2.5rem; }
.pl-11 { padding-left: 2.75rem; }
.pt-1\.5 { padding-top: 0.375rem; }
.py-0\.2 { padding-top: 0.1rem; padding-bottom: 0.1rem; }
.mt-12 { margin-top: 3rem; }
.w-0 { width: 0px; }
.min-w-0 { min-width: 0px; }
.min-h-full { min-height: 100%; }
.max-h-32 { max-height: 8rem; }
.max-h-\[280px\] { max-height: 280px; }
.max-h-\[320px\] { max-height: 320px; }
.max-h-\[400px\] { max-height: 400px; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.whitespace-nowrap { white-space: nowrap; }
.break-words { overflow-wrap: break-word; word-break: break-word; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.border-collapse { border-collapse: collapse; }
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.rounded-t-xl { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }
.border-b-2 { border-bottom-width: 2px; }
.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.125rem; }
.disabled\:opacity-50:disabled { opacity: 0.5; cursor: not-allowed; }

/* Metin ve Arka Plan Renkleri */
.text-stone-100 { color: #F5F5F4 !important; }
.text-stone-200 { color: #E7E5E4 !important; }
.text-stone-300 { color: #D6D3D1 !important; }
.text-stone-400 { color: #A8A29E !important; }
.text-stone-500 { color: #78716C !important; }
.text-stone-600 { color: #57534E !important; }
.text-stone-700 { color: #44403C !important; }
.text-stone-800 { color: #292524 !important; }
.text-amber-200 { color: #FDE68A !important; }
.text-amber-400 { color: #FBBF24 !important; }
.text-amber-700 { color: #B45309 !important; }
.text-amber-800 { color: #92400E !important; }
.text-amber-900 { color: #78350F !important; }
.text-amber-950 { color: #451A03 !important; }
.text-orange-900 { color: #7C2D12 !important; }
.text-emerald-300, .text-emerald-300\/90 { color: #6EE7B7 !important; }
.text-emerald-400 { color: #34D399 !important; }
.text-emerald-700 { color: #047857 !important; }
.text-emerald-800 { color: #065F46 !important; }
.text-emerald-900 { color: #064E3B !important; }
.text-emerald-950 { color: #022C22 !important; }
.text-sky-700 { color: #0369A1 !important; }
.text-sky-800 { color: #075985 !important; }
.text-sky-900 { color: #0C4A6E !important; }
.text-indigo-700 { color: #4338CA !important; }
.text-cyan-400 { color: #22D3EE !important; }
.text-rose-400 { color: #FB7185 !important; }

.bg-\[\#F8FAFC\] { background-color: #F8FAFC; }
.bg-stone-50\/50 { background-color: rgba(250, 250, 249, 0.5); }
.bg-stone-50\/60 { background-color: rgba(250, 250, 249, 0.6); }
.bg-stone-50\/70 { background-color: rgba(250, 250, 249, 0.7); }
.bg-stone-200\/70 { background-color: rgba(231, 229, 228, 0.7); }
.bg-stone-300 { background-color: #D6D3D1; }
.bg-stone-500 { background-color: #78716C; }
.bg-stone-600 { background-color: #57534E; }
.bg-amber-400 { background-color: #FBBF24; }
.bg-amber-50\/40 { background-color: rgba(255, 251, 235, 0.4); }
.bg-amber-50\/50 { background-color: rgba(255, 251, 235, 0.5); }
.bg-amber-50\/70 { background-color: rgba(255, 251, 235, 0.7); }
.bg-orange-50 { background-color: #FFF7ED; }
.bg-emerald-50\/30 { background-color: rgba(236, 253, 245, 0.3); }
.bg-emerald-50\/50 { background-color: rgba(236, 253, 245, 0.5); }
.bg-emerald-50\/70 { background-color: rgba(236, 253, 245, 0.7); }
.bg-emerald-50\/90 { background-color: rgba(236, 253, 245, 0.9); }
.bg-rose-50\/40 { background-color: rgba(255, 241, 242, 0.4); }
.bg-rose-50\/50 { background-color: rgba(255, 241, 242, 0.5); }
.bg-rose-50\/60 { background-color: rgba(255, 241, 242, 0.6); }
.bg-sky-50 { background-color: #F0F9FF; }
.bg-sky-50\/40 { background-color: rgba(240, 249, 255, 0.4); }
.bg-sky-100 { background-color: #E0F2FE; }
.bg-sky-500 { background-color: #0EA5E9; }
.bg-sky-600 { background-color: #0284C7; }
.bg-indigo-100 { background-color: #E0E7FF; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }

.border-stone-200\/60 { border-color: rgba(231, 229, 228, 0.6); }
.border-stone-200\/70 { border-color: rgba(231, 229, 228, 0.7); }
.border-stone-200\/80 { border-color: rgba(231, 229, 228, 0.8); }
.border-stone-200\/90 { border-color: rgba(231, 229, 228, 0.9); }
.border-stone-800 { border-color: #292524; }
.border-amber-300\/80 { border-color: rgba(252, 211, 77, 0.8); }
.border-orange-200 { border-color: #FED7AA; }
.border-emerald-200\/80 { border-color: rgba(167, 243, 208, 0.8); }
.border-rose-100 { border-color: #FFE4E6; }
.border-sky-200 { border-color: #BAE6FD; }
.border-sky-300 { border-color: #7DD3FC; }
.border-indigo-200 { border-color: #C7D2FE; }

.hover\:bg-stone-100:hover { background-color: #F5F5F4; }
.hover\:bg-amber-200:hover { background-color: #FDE68A; }
.hover\:bg-orange-200:hover { background-color: #FED7AA; }
.hover\:bg-sky-50:hover { background-color: #F0F9FF; }
.hover\:bg-sky-200:hover { background-color: #BAE6FD; }
.hover\:border-stone-300:hover { border-color: #D6D3D1; }

@media (min-width: 640px) {
  .sm\:inline-flex { display: inline-flex; }
  .sm\:p-7 { padding: 1.75rem; }
  .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:inline-flex { display: inline-flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.hidden {
  display: none !important;
}

/* =============================================================
   9. VIBE CODED APPS VİTRİN TASARIM SİSTEMİ ENTEGRASYONU
   Mistral Warm Canvas (#FFFDF9) • MK Obsidian Emblem • Accordion
   Kategori Hapları • Bento Modül Kartları • Yüksek Okunabilirlik
============================================================= */
.bg-mistral-canvas {
  background-color: #FFFDF9 !important;
}

.bg-mistral-cream {
  background-color: #FFF8E0 !important;
}

.border-mistral-beige-deep {
  border-color: #E6D5A8 !important;
}

/* Premium Obsidian MK Brand Emblem */
.mk-brand-emblem {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 0.75rem !important;
  background: linear-gradient(145deg, #1E2028 0%, #0D0F14 55%, #07080B 100%) !important;
  border: 1px solid #2E323E !important;
  box-shadow:
    0 6px 16px -3px rgba(10, 12, 18, 0.38),
    0 2px 4px -1px rgba(10, 12, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(250, 82, 15, 0.25) !important;
  color: #FFFFFF !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mk-brand-emblem::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.mk-brand-emblem:hover {
  border-color: rgba(250, 82, 15, 0.75) !important;
  box-shadow:
    0 8px 20px -3px rgba(250, 82, 15, 0.28),
    0 3px 6px -1px rgba(10, 12, 18, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px) scale(1.02);
}

.mk-brand-emblem-sm {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.625rem !important;
}

/* Vitrin Hero & Omni-Search Komuta Kartı */
.vibe-hero-card,
.command-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(250, 82, 15, 0.08) 0%, rgba(245, 158, 11, 0.04) 40%, transparent 70%),
    radial-gradient(circle at 0% 100%, rgba(255, 248, 224, 0.7) 0%, transparent 60%),
    #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
  position: relative;
  overflow: hidden;
}

.vibe-omni-dock,
.omni-dock {
  background-color: #FFFDF9 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 1.125rem !important;
  padding: 0.875rem !important;
  transition: all 0.2s ease;
}

.vibe-omni-dock:focus-within,
.omni-dock:focus-within {
  background-color: #FFFFFF !important;
  border-color: rgba(250, 82, 15, 0.45) !important;
  box-shadow: 0 8px 24px -6px rgba(250, 82, 15, 0.14) !important;
}

/* Yatay Kaydırılabilir Hızlı Profil & Filtre Çubuğu (.vibe-cat-pills) */
.vibe-cat-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0.125rem;
}

.vibe-cat-pills::-webkit-scrollbar {
  display: none;
}

.vibe-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.875rem;
  border-radius: 9999px !important;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569 !important;
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: var(--shadow-xs);
  transition: all 0.16s ease;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.vibe-cat-pill svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: #64748B;
}

.vibe-cat-pill:hover {
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  background-color: #F8FAFC !important;
}

.vibe-cat-pill.is-active {
  background: linear-gradient(135deg, #FA520F 0%, #EA580C 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(204, 58, 5, 0.3) !important;
  box-shadow: 0 3px 10px -1px rgba(250, 82, 15, 0.3) !important;
}

.vibe-cat-pill.is-active svg {
  color: #FFFFFF !important;
}

/* Vitrin Akordion Kartları (.vibe-accordion-card) */
.vibe-accordion-card {
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 1.25rem !important;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vibe-accordion-card:hover {
  border-color: #CBD5E1 !important;
}

.vibe-cat-badge {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 0.875rem !important;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%) !important;
  border: 1px solid #FED7AA !important;
  color: #FA520F !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, background 0.2s ease;
}

.vibe-cat-badge svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
}

.vibe-cat-badge-amber {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%) !important;
  border: 1px solid #FDE68A !important;
  color: #D97706 !important;
}

/* Bento Modül Kartları — Geliştirilmiş Okunabilirlik & Hiyerarşi */
.module-card {
  padding: 1rem 1.125rem !important;
  border-radius: 1rem !important;
  border: 1px solid #E2E8F0 !important;
  background-color: #FFFFFF !important;
  box-shadow: var(--shadow-xs) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.module-card:hover {
  border-color: rgba(250, 82, 15, 0.45) !important;
  box-shadow: 0 8px 20px -5px rgba(250, 82, 15, 0.08), 0 3px 8px -2px rgba(15, 23, 42, 0.04) !important;
  transform: translateY(-1px);
}

.module-card:has(input:checked),
.module-card.is-checked {
  border-color: rgba(250, 82, 15, 0.5) !important;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.65) 0%, #FFFFFF 100%) !important;
  box-shadow: 0 4px 14px -3px rgba(250, 82, 15, 0.14) !important;
}

.module-card-ai:has(input:checked),
.module-card-ai.is-checked {
  border-color: #F59E0B !important;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%) !important;
  box-shadow: 0 4px 14px -3px rgba(245, 158, 11, 0.18) !important;
}

.module-icon-box {
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 0.75rem !important;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* ==========================================================================
   UZEM UI/UX Pro Max: Tactical Dark Mode, Compact Density & Semantic Colors
   ========================================================================== */
body.compact-modules .module-check-card p,
body.compact-modules label.module-card p {
  display: none !important;
}
body.compact-modules .module-check-card,
body.compact-modules label.module-card {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

/* Semantik Seçim Ayrımı: Seçili modül kartları nötr/zümrüt vurgu kullanır (Turuncu/Kırmızı CVSS risklerine ayrılır) */
.module-check-card:has(input[type="checkbox"]:checked) {
  border-color: rgba(16, 185, 129, 0.55) !important;
  background-color: rgba(236, 253, 245, 0.35) !important;
}

/* Tactical Dark Mode (SOC / Güvenlik Operasyon Görünümü) */
html.dark-theme body {
  background-color: #0B0F17 !important;
  color: #E2E8F0 !important;
}
html.dark-theme .app-header,
html.dark-theme footer {
  background-color: rgba(17, 24, 39, 0.92) !important;
  border-color: #1E293B !important;
  color: #E2E8F0 !important;
}
html.dark-theme .bg-white,
html.dark-theme .vibe-hero,
html.dark-theme .vibe-omni-dock,
html.dark-theme .module-check-card {
  background-color: #111827 !important;
  border-color: #1E293B !important;
  color: #E2E8F0 !important;
}
html.dark-theme .module-check-card:has(input[type="checkbox"]:checked) {
  border-color: rgba(16, 185, 129, 0.65) !important;
  background-color: rgba(6, 78, 59, 0.28) !important;
}
html.dark-theme .bg-stone-50,
html.dark-theme .bg-mistral-cream,
html.dark-theme .segmented-group,
html.dark-theme .modern-field,
html.dark-theme input[type="text"],
html.dark-theme input[type="password"],
html.dark-theme select,
html.dark-theme textarea {
  background-color: #0F172A !important;
  border-color: #334155 !important;
  color: #F1F5F9 !important;
}
html.dark-theme .text-mistral-ink,
html.dark-theme .text-stone-900,
html.dark-theme .text-stone-800,
html.dark-theme .text-stone-700 {
  color: #F1F5F9 !important;
}
html.dark-theme .text-mistral-slate,
html.dark-theme .text-stone-600,
html.dark-theme .text-stone-500 {
  color: #94A3B8 !important;
}
html.dark-theme .btn-secondary,
html.dark-theme .vibe-cat-pill:not(.is-active) {
  background-color: #1E293B !important;
  border-color: #334155 !important;
  color: #E2E8F0 !important;
}

/* ==========================================================================
   KAPSAMLI TACTICAL DARK MODE DÜZELTMESİ (Tüm Arka Planlar, Gradyanlar & Yazılar)
   ========================================================================== */
html.dark-theme,
html.dark-theme body {
  background: #0B0F17 !important;
  background-color: #0B0F17 !important;
  color: #F1F5F9 !important;
}
html.dark-theme .app-header,
html.dark-theme footer {
  background: rgba(15, 23, 42, 0.96) !important;
  border-color: #1E293B !important;
  color: #F1F5F9 !important;
}
html.dark-theme .command-hero,
html.dark-theme .vibe-hero-card,
html.dark-theme .vibe-hero,
html.dark-theme .vibe-omni-dock,
html.dark-theme .omni-dock,
html.dark-theme .module-card,
html.dark-theme .module-check-card,
html.dark-theme #ai-config-panel,
html.dark-theme #results-export-toolbar,
html.dark-theme [class*="bg-white"],
html.dark-theme [class*="bg-stone-50"],
html.dark-theme [class*="bg-stone-100"],
html.dark-theme [class*="bg-mistral-cream"],
html.dark-theme [class*="bg-mistral-canvas"] {
  background: #111827 !important;
  background-color: #111827 !important;
  border-color: #1E293B !important;
  color: #F1F5F9 !important;
}
html.dark-theme .target-input-wrapper,
html.dark-theme #unified-target-input,
html.dark-theme #unified-dir-input,
html.dark-theme .modern-field,
html.dark-theme input[type="text"],
html.dark-theme input[type="password"],
html.dark-theme input[type="url"],
html.dark-theme input[type="number"],
html.dark-theme select,
html.dark-theme textarea {
  background: #0F172A !important;
  background-color: #0F172A !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}
html.dark-theme input::placeholder,
html.dark-theme textarea::placeholder {
  color: #64748B !important;
}
html.dark-theme h1, html.dark-theme h2, html.dark-theme h3, html.dark-theme h4,
html.dark-theme .text-mistral-ink,
html.dark-theme [class*="text-stone-9"],
html.dark-theme [class*="text-stone-8"],
html.dark-theme [class*="text-stone-7"] {
  color: #F8FAFC !important;
}
html.dark-theme p, html.dark-theme label, html.dark-theme span,
html.dark-theme .text-mistral-slate,
html.dark-theme [class*="text-stone-6"],
html.dark-theme [class*="text-stone-5"],
html.dark-theme [class*="text-stone-4"] {
  color: #CBD5E1;
}
html.dark-theme .text-mistral-orange,
html.dark-theme .text-orange-500,
html.dark-theme .text-orange-600 {
  color: #FB923C !important;
}
html.dark-theme [class*="bg-amber-50"],
html.dark-theme [class*="bg-orange-50"] {
  background: rgba(120, 53, 15, 0.28) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #FDE68A !important;
}
html.dark-theme [class*="text-amber-9"],
html.dark-theme [class*="text-amber-8"],
html.dark-theme [class*="text-orange-9"],
html.dark-theme [class*="text-orange-8"] {
  color: #FDE68A !important;
}
html.dark-theme [class*="bg-emerald-50"],
html.dark-theme [class*="bg-green-50"] {
  background: rgba(6, 78, 59, 0.35) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #A7F3D0 !important;
}
html.dark-theme [class*="text-emerald-9"],
html.dark-theme [class*="text-emerald-8"],
html.dark-theme [class*="text-green-9"],
html.dark-theme [class*="text-green-8"] {
  color: #A7F3D0 !important;
}
html.dark-theme [class*="bg-amber-200"] {
  background: rgba(217, 119, 6, 0.35) !important;
  color: #FEF3C7 !important;
}
html.dark-theme [class*="bg-emerald-200"] {
  background: rgba(5, 150, 105, 0.35) !important;
  color: #D1FAE5 !important;
}
html.dark-theme code {
  background: #1E293B !important;
  color: #FBBF24 !important;
  border-color: #334155 !important;
}
html.dark-theme .btn-secondary,
html.dark-theme .btn-ai,
html.dark-theme .segmented-group,
html.dark-theme .segmented-item:not(.is-active-orange),
html.dark-theme .vibe-cat-pill:not(.is-active),
html.dark-theme .detail-tab-btn:not(.active) {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F1F5F9 !important;
}
html.dark-theme .btn-primary span,
html.dark-theme .is-active-orange span,
html.dark-theme .vibe-cat-pill.is-active span {
  color: #FFFFFF !important;
}
html.dark-theme [class*="border-stone-"] {
  border-color: #1E293B !important;
}

/* Dark Mode Ek Konteyner, Akordeon Gövdesi, İkon Rozeti ve Buton Düzeltmeleri */
html.dark-theme body {
  background: #0B0F17 !important;
  background-image: none !important;
}
html.dark-theme #acc-body-standard,
html.dark-theme #acc-body-ai,
html.dark-theme .vibe-accordion-card,
html.dark-theme .vibe-accordion-body,
html.dark-theme section {
  background: #111827 !important;
  background-color: #111827 !important;
  border-color: #1E293B !important;
}
html.dark-theme .vibe-cat-badge,
html.dark-theme .module-icon {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #FB923C !important;
}
html.dark-theme #header-ai-btn,
html.dark-theme .btn-ai,
html.dark-theme #theme-toggle-btn,
html.dark-theme #header-update-btn:not(.btn-primary) {
  background: #1E293B !important;
  background-image: none !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}
html.dark-theme #header-ai-btn span,
html.dark-theme #theme-toggle-btn span,
html.dark-theme #header-update-btn span {
  color: #F8FAFC !important;
}

/* ==========================================================================
   DARK MODE HOVER KONTRAST DÜZELTMESİ (Tüm Buton, Hap, Sekme ve Aksiyonlar)
   ========================================================================== */
html.dark-theme .btn-secondary:hover,
html.dark-theme .btn-ai:hover,
html.dark-theme #section2-ai-btn:hover,
html.dark-theme #theme-toggle-btn:hover,
html.dark-theme #header-update-btn:not(.btn-primary):hover,
html.dark-theme .segmented-item:not(.is-active-orange):hover,
html.dark-theme .vibe-cat-pill:not(.is-active):hover,
html.dark-theme .detail-tab-btn:not(.active):hover,
html.dark-theme button[class*="hover:bg-"]:not(.btn-primary):not(.is-active):not(.is-active-orange):hover,
html.dark-theme a.btn-secondary:hover {
  background: #334155 !important;
  background-color: #334155 !important;
  background-image: none !important;
  border-color: #FB923C !important;
  color: #FFFFFF !important;
}
html.dark-theme .btn-secondary:hover span,
html.dark-theme .btn-secondary:hover svg,
html.dark-theme .btn-ai:hover span,
html.dark-theme .btn-ai:hover svg,
html.dark-theme .segmented-item:not(.is-active-orange):hover span,
html.dark-theme .vibe-cat-pill:not(.is-active):hover span,
html.dark-theme .detail-tab-btn:not(.active):hover span,
html.dark-theme button[class*="hover:bg-"]:hover span {
  color: #FFFFFF !important;
}
html.dark-theme .btn-primary:hover,
html.dark-theme .is-active-orange:hover,
html.dark-theme .vibe-cat-pill.is-active:hover {
  background: #EA580C !important;
  background-color: #EA580C !important;
  color: #FFFFFF !important;
}

/* Sonuç Raporu Tek Satır Triage Akordeon & Dark Mode Uyum Stilleri */
details.triage-finding-item > summary::-webkit-details-marker,
details#analysis-items-report-card > summary::-webkit-details-marker {
  display: none;
}
details.triage-finding-item[open] > summary {
  background-color: rgba(250, 82, 15, 0.04);
}
html.dark-theme details.triage-finding-item,
html.dark-theme #triage-filter-bar,
html.dark-theme details#analysis-items-report-card {
  background: #111827 !important;
  border-color: #1E293B !important;
}
html.dark-theme details.triage-finding-item > div {
  background: #0F172A !important;
  border-color: #1E293B !important;
}
