/* ==========================================================================
   Yamaç Satış Yönetimi — Mobil Adayı (Mobile App Candidate)
   Shadcn Admin + Attio + Linear Esintili Mobil Tasarım Sistemi
   Sıfır Emoji Kuralı • Tam Ekran PWA & Masaüstü Önizleme Çerçevesi
   ========================================================================== */

:root {
  --background: #090d16;
  --surface: #0f172a;
  --foreground: #f8fafc;
  --muted: #94a3b8;
  --muted-light: #1e293b;
  --border: #1e293b;
  --border-strong: #334155;

  /* Yamaç Kurumsal Lacivert & Safir Mavi */
  --brand-navy-950: #06090e;
  --brand-navy-900: #090d16;
  --brand-navy-800: #0f172a;
  --brand-navy-700: #1e293b;
  
  --primary-blue: #2563eb;
  --primary-blue-hover: #1d4ed8;
  --primary-blue-light: rgba(37, 99, 235, 0.15);
  --primary-blue-border: rgba(37, 99, 235, 0.35);

  --success: #16a34a;
  --success-light: rgba(22, 163, 74, 0.15);
  --success-border: rgba(22, 163, 74, 0.35);

  --warning: #d97706;
  --warning-light: rgba(217, 119, 6, 0.15);
  --warning-border: rgba(217, 119, 6, 0.35);

  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, 0.15);
  --danger-border: rgba(220, 38, 38, 0.35);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  background-color: #0b1120;
  font-family: var(--font-sans);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Masaüstü vs Telefon Önizleme Sarmalayıcısı
   -------------------------------------------------------------------------- */
#app-viewport-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #090d16 100%);
  position: relative;
}

/* Masaüstü Üst Önizleme Kontrol Çubuğu */
.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 460px;
  padding: 8px 16px;
  font-size: 11px;
  color: #94a3b8;
  z-index: 50;
  flex-shrink: 0;
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 9999px;
  color: #f8fafc;
  font-weight: 500;
}

.preview-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #93c5fd;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.preview-toggle-btn:hover {
  background: rgba(37, 99, 235, 0.35);
  color: #ffffff;
}

/* Mobil Görünüm Sarmalayıcısı & Cihaz Kasası */
.rep-viewport-container {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #06090e;
  overflow: hidden;
}

@media (min-width: 640px) {
  .rep-viewport-container {
    padding: 16px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .device-frame {
    width: 100%;
    max-width: 440px;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    max-height: 860px;
    border-radius: 32px;
    border: 1px solid #1e293b;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 6px #0f172a;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

/* İnce ve Şık İç Kaydırma Çubuğu — Tüm Mobil Konteynerlar (No intrusive Windows scrollbars) */
.mobile-app-root *,
.mobile-app-main,
.sheet-container,
.sheet-body,
.modal-content,
.modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}
.mobile-app-root *::-webkit-scrollbar,
.mobile-app-main::-webkit-scrollbar,
.sheet-container::-webkit-scrollbar,
.sheet-body::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.mobile-app-root *::-webkit-scrollbar-track,
.mobile-app-main::-webkit-scrollbar-track,
.sheet-container::-webkit-scrollbar-track,
.sheet-body::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.mobile-app-root *::-webkit-scrollbar-thumb,
.mobile-app-main::-webkit-scrollbar-thumb,
.sheet-container::-webkit-scrollbar-thumb,
.sheet-body::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
}
.mobile-app-root *::-webkit-scrollbar-thumb:hover,
.mobile-app-main::-webkit-scrollbar-thumb:hover,
.sheet-container::-webkit-scrollbar-thumb:hover,
.sheet-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(59, 130, 246, 0.6);
}

/* Tipografi & Satır İçi Düzen Kuralları */
.nonbreaking-phone {
  white-space: nowrap !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.company-multiline-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.35;
}

/* Rahat Dokunma Hedefleri (Minimum 44px tap target) */
.touch-target-btn {
  min-height: 44px;
}

/* Mobil Temsilci Uygulama Kök Konteynerleri (Sabit 100dvh ve Sıfır Pencere Kaydırması) */
body.rep-active,
body.rep-active #app-root {
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

@media (max-width: 639px) {
  html, body {
    height: 100%;
    height: 100dvh;
    overflow-x: hidden;
  }
  .rep-viewport-container {
    padding: 0 !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .device-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .stat-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 4px !important;
  }
  .stat-card {
    padding: 6px 2px !important;
    min-height: 48px !important;
  }
}

/* Sabit Alt Gezinme Çubuğu (Bottom Navigation) & İç Kaydırma */
.mobile-app-nav {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  min-height: calc(58px + env(safe-area-inset-bottom, 0px));
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 44px;
  padding: 6px 2px;
  touch-action: manipulation;
  cursor: pointer;
}

.mobile-app-main {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  background-color: #090d16 !important;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
}
.stat-card-val {
  font-size: 18px;
  font-weight: 800;
  display: block;
  line-height: 1.2;
}
.stat-card-lbl {
  font-size: 10px;
  color: #9ca3af;
  display: block;
  white-space: nowrap;
}

/* Dinamik Ada / Hoparlör Çentiği (Telefon Kasasında) */
.device-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 26px;
  background-color: #000000;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  pointer-events: none;
}

.device-island .camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111827;
  border: 1px solid #1f2937;
}

.device-island .mic {
  width: 12px;
  height: 4px;
  border-radius: 4px;
  background: #1f2937;
}

@media (max-width: 500px) {
  .device-island {
    display: none;
  }
}
.fullscreen-mode .device-island {
  display: none;
}

/* --------------------------------------------------------------------------
   Mobil Arayüz Başlığı (Header)
   -------------------------------------------------------------------------- */
.mobile-app-header {
  min-height: 64px;
  background-color: var(--brand-navy-950);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(env(safe-area-inset-top, 0px), 8px) 16px 8px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 40;
  position: relative;
  gap: 12px;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

.header-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.header-user-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.2;
}

.pwa-chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.header-user-sub {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-icon-btn:hover,
.header-icon-btn:active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.header-icon-btn .badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  box-shadow: 0 0 0 2px var(--brand-navy-900);
}

/* --------------------------------------------------------------------------
   İçerik Sahnesi (Screens Viewport)
   -------------------------------------------------------------------------- */
.mobile-app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background-color: #090d16;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   Mobil Alt Gezinme Çubuğu (Bottom Navigation)
   Asgari 48px dokunma ergonomisi, safe-area insets
   -------------------------------------------------------------------------- */
.mobile-app-nav {
  height: calc(68px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background-color: #030712;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  flex-shrink: 0;
  z-index: 40;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  min-height: 64px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 6px 2px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-btn.active {
  color: #3b82f6;
  font-weight: 700;
}

.mobile-nav-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background-color: #3b82f6;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 8px rgba(59, 130, 246, 0.6);
}

.mobile-nav-btn span {
  font-size: 11.5px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
}

.mobile-nav-btn .nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  background-color: var(--danger);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #ffffff;
}

/* --------------------------------------------------------------------------
   Genel Tipografi ve Bileşenler
   -------------------------------------------------------------------------- */
.app-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  color: var(--foreground);
}

.app-btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.app-btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
}
.app-btn-primary:hover {
  background-color: var(--primary-blue-hover);
}

.app-btn-dark {
  background-color: var(--brand-navy-800);
  color: #ffffff;
}
.app-btn-dark:hover {
  background-color: var(--brand-navy-900);
}

.app-btn-secondary {
  background-color: var(--muted-light);
  color: var(--foreground);
  border-color: var(--border);
}
.app-btn-secondary:hover {
  background-color: #334155;
  color: #ffffff;
}

.app-btn-outline {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--foreground);
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.app-badge-blue {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  border-color: var(--primary-blue-border);
}

.app-badge-green {
  background-color: var(--success-light);
  color: var(--success);
  border-color: var(--success-border);
}

.app-badge-amber {
  background-color: var(--warning-light);
  color: var(--warning);
  border-color: var(--warning-border);
}

.app-badge-red {
  background-color: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger-border);
}

.app-badge-slate {
  background-color: var(--muted-light);
  color: var(--muted);
  border-color: var(--border);
}

/* --------------------------------------------------------------------------
   İnteraktif Modallar / Slide-up Sheets
   -------------------------------------------------------------------------- */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(9, 13, 22, 0.6);
  backdrop-filter: blur(2px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeIn 0.15s ease-out;
}

.sheet-container {
  background-color: var(--surface);
  border-radius: 20px 20px 0 0;
  max-height: 92%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  color: var(--foreground);
}

.sheet-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-navy-900);
  color: #ffffff;
}

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  background-color: #334155;
  border-radius: 2px;
  margin: 0 auto 8px;
}

.sheet-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  background-color: var(--surface);
  color: var(--foreground);
}

.sheet-footer {
  padding: 12px 16px;
  padding-bottom: calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background-color: var(--brand-navy-900);
  display: flex;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Sonuç Seçim Izgarası (Result-First Grid) & Mobil Etkileşim Butonları
   Koyu Tema Uyumlu • Yüksek Kontrast • Hover & Seçim Sabitliği
   -------------------------------------------------------------------------- */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.outcome-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background-color: #1e293b;
  border: 1.5px solid #334155;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  text-align: left;
  user-select: none;
}

.outcome-btn:hover {
  border-color: #64748b;
  background-color: #334155;
  color: #ffffff;
}

.outcome-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
}

.outcome-btn.selected {
  border-color: #3b82f6;
  background-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}

.outcome-btn.selected-danger {
  border-color: #ef4444;
  background-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.4);
}

.outcome-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Merkezi Kompakt İletişim Kutusu (Kısa Formlar: Düzeltme Notu vb.)
   -------------------------------------------------------------------------- */
.dialog-backdrop-center {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}

.dialog-modal-card {
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dialogZoomIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sheet-container.no-animate,
.sheet-backdrop.no-animate,
.dialog-modal-card.no-animate,
.dialog-backdrop-center.no-animate {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .sheet-container,
  .sheet-backdrop,
  .dialog-modal-card,
  .dialog-backdrop-center,
  .outcome-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* İnce ve Şık Kaydırma Çubuğu */
.sheet-body::-webkit-scrollbar,
.mobile-app-main::-webkit-scrollbar,
.dialog-modal-card::-webkit-scrollbar {
  width: 5px;
}
.sheet-body::-webkit-scrollbar-track,
.mobile-app-main::-webkit-scrollbar-track,
.dialog-modal-card::-webkit-scrollbar-track {
  background: transparent;
}
.sheet-body::-webkit-scrollbar-thumb,
.mobile-app-main::-webkit-scrollbar-thumb,
.dialog-modal-card::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
.sheet-body::-webkit-scrollbar-thumb:hover,
.mobile-app-main::-webkit-scrollbar-thumb:hover,
.dialog-modal-card::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Form Elemanları */
.form-group {
  margin-top: 12px;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid #334155;
  background-color: #0f172a;
  font-size: 13px;
  color: #ffffff;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Animasyonlar
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Toast Bildirimleri */
.toast-container {
  position: absolute;
  top: 60px;
  left: 14px;
  right: 14px;
  z-index: 100;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-message {
  background-color: var(--brand-navy-900);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary-blue);
  animation: slideInDown 0.2s ease-out;
}

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

/* Standart Izgara ve Esnek Düzen Güvenlik Kuralları */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dark form controls & accessible input icon contrast */
.mobile-app-root input[type="date"],
.mobile-app-root input[type="time"],
.mobile-app-root input[type="datetime-local"],
.sheet-container input[type="date"],
.sheet-container input[type="time"],
.sheet-container input[type="datetime-local"] {
  color-scheme: dark;
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


