/* ==============================================================================
   TAKSICO - Profesyonel Modern Tasarım Sistemi (v2.1)
   Ultra Hızlı, Temiz, Kesinlikle Emojisiz, Vektör SVG İkonlu, Sarı Vurgulu
   ============================================================================== */

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

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Mor / İndigo Vurgu & Renk Paleti (#5B50E5, #6366F1, #4F46E5) */
  --primary: #5B50E5;
  --primary-hover: #4F46E5;
  --primary-light: rgba(91, 80, 229, 0.15);
  --primary-glow: rgba(91, 80, 229, 0.4);
  --primary-gradient: linear-gradient(135deg, #6366F1 0%, #5B50E5 50%, #4F46E5 100%);
  --primary-gradient-hover: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);

  /* Premium Koyu Lacivert & Siyah Tonlar (#0B0E17, #121829, #161F36) */
  --bg-main: #0B0E17;
  --bg-surface: #121829;
  --bg-surface-elevated: #161F36;
  --bg-surface-active: #1E294B;
  --bg-input: #0E1322;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-primary: rgba(91, 80, 229, 0.45);

  /* Okunabilirliği Yüksek Metin Renkleri */
  --text-main: #FFFFFF;
  --text-muted: #9CA3AF;
  --text-dim: #64748B;
  --text-inverse: #FFFFFF;

  /* Durum Renkleri */
  --status-green: #10B981;
  --status-green-bg: rgba(16, 185, 129, 0.12);
  --status-yellow: #F59E0B;
  --status-yellow-bg: rgba(245, 158, 11, 0.12);
  --status-blue: #3B82F6;
  --status-blue-bg: rgba(59, 130, 246, 0.12);
  --status-red: #EF4444;
  --status-red-bg: rgba(239, 68, 68, 0.14);
  --status-purple: #8B5CF6;
  --status-purple-bg: rgba(139, 92, 246, 0.14);
  --status-gray: #64748B;
  --status-gray-bg: rgba(100, 116, 139, 0.14);

  /* Geometri & Gölgeler */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(91, 80, 229, 0.35);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-main);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: #fbbf24;
}

/* ==============================================================================
   SVG İkon Sınıfları
   ============================================================================== */

.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke-width: 2;
  transition: var(--transition);
}

.icon-primary { stroke: var(--primary); }
.icon-danger { stroke: var(--status-red); }
.icon-success { stroke: var(--status-green); }
.icon-muted { stroke: var(--text-muted); }

/* ==============================================================================
   Tipografi
   ============================================================================== */

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 1.55rem; font-weight: 800; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

p {
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

/* ==============================================================================
   Butonlar
   ============================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-height: 46px;
  user-select: none;
  text-decoration: none;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-weight: 700;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 16px rgba(91, 80, 229, 0.4);
}
.btn-primary:hover {
  background: var(--primary-gradient-hover);
  box-shadow: 0 6px 24px rgba(91, 80, 229, 0.55);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: #fff;
}

.btn-emergency {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.btn-emergency:hover {
  background: #b91c1c;
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-color: rgba(37, 211, 102, 0.3);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  min-height: 36px;
  border-radius: var(--radius-sm);
}

/* ==============================================================================
   Formlar
   ============================================================================== */

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  min-height: 46px;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
  color: var(--text-dim);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ==============================================================================
   Kartlar, Rozetler & Alarmlar
   ============================================================================== */

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card-elevated {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.badge-green { background-color: var(--status-green-bg); color: var(--status-green); border-color: rgba(16, 185, 129, 0.25); }
.badge-yellow { background-color: var(--status-yellow-bg); color: #fbbf24; border-color: rgba(245, 158, 11, 0.25); }
.badge-blue { background-color: var(--status-blue-bg); color: var(--status-blue); border-color: rgba(59, 130, 246, 0.25); }
.badge-red { background-color: var(--status-red-bg); color: #f87171; border-color: rgba(239, 68, 68, 0.25); }
.badge-gray { background-color: var(--status-gray-bg); color: var(--text-muted); border-color: rgba(100, 116, 139, 0.25); }

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-danger {
  background-color: var(--status-red-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background-color: var(--status-green-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.alert-warning {
  background-color: var(--status-yellow-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

/* ==============================================================================
   Modallar ve Bottom Sheet
   ============================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem 1.25rem calc(1.5rem + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.modal-backdrop.active .modal-sheet {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .modal-backdrop {
    align-items: center;
  }
  .modal-sheet {
    border-radius: var(--radius-lg);
    padding-bottom: 1.5rem;
    transform: scale(0.96);
  }
  .modal-backdrop.active .modal-sheet {
    transform: scale(1);
  }
}

/* ==============================================================================
   Toast Bildirimi
   ============================================================================== */

#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  max-width: 400px;
  margin: 0 auto;
  z-index: 2000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  pointer-events: auto;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  animation: toastIn 0.2s ease-out;
}

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

/* Plaka Hapı (Plate Badge) */
.plate-pill {
  display: inline-flex;
  align-items: center;
  background: #f59e0b;
  color: #080b11;
  font-weight: 800;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1.5px solid #080b11;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Responsive Yardımcılar */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
