/* =============================================
   AkaryakıtPro — Light / White Design System
   ============================================= */

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

/* ─── CSS Variables ─────────────────────────── */
:root {
  /* Backgrounds */
  --bg-body:    #f4f6fb;
  --bg-surface: #ffffff;
  --bg-muted:   #f8fafc;
  --bg-hover:   #f1f5f9;
  --bg-active:  #eff0ff;

  /* Borders */
  --border-light:  #e8ecf4;
  --border-normal: #d1d9ee;
  --border-focus:  #6366f1;

  /* Text */
  --text-primary:   #111827;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;
  --text-inverse:   #ffffff;

  /* Brand / Accent (Indigo) */
  --accent:         #6366f1;
  --accent-dark:    #4f46e5;
  --accent-light:   #eff0ff;
  --accent-glow:    rgba(99, 102, 241, 0.18);

  /* Status */
  --green:      #16a34a;
  --green-bg:   #dcfce7;
  --green-text: #14532d;
  --red:        #dc2626;
  --red-bg:     #fee2e2;
  --red-text:   #7f1d1d;
  --amber:      #d97706;
  --amber-bg:   #fef3c7;
  --amber-text: #78350f;
  --blue:       #2563eb;
  --blue-bg:    #dbeafe;

  /* Sidebar */
  --sidebar-w: 256px;
  --topbar-h:  64px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);

  --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d9ee; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xs);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border-light);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-section-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 10px 10px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
}

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

.nav-item.active {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-color: rgba(99, 102, 241, 0.2);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.nav-item-danger.active {
  background: #fff1f2;
  color: var(--red);
  border-color: #fecdd3;
}
.nav-item-danger.active::before { background: var(--red); }

.nav-icon { font-size: 15px; flex-shrink: 0; }
.nav-label { flex: 1; }

.nav-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
}
.nav-badge-red { background: var(--red); font-size: 7.5px; }

/* User */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  border-top: 1px solid var(--border-light);
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.user-info { flex: 1; display: flex; flex-direction: column; }
.user-name { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.user-role { font-size: 11px; color: var(--text-muted); }

.logout-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.logout-btn:hover {
  background: var(--red-bg);
  border-color: #fecdd3;
  color: var(--red);
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}

.topbar-left { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}
.bc-sep { opacity: 0.4; }
.bc-current { color: var(--text-primary); font-weight: 700; }

.topbar-right { display: flex; align-items: center; gap: 16px; }

.live-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  padding: 5px 11px;
  border-radius: 8px;
  letter-spacing: 0.03em;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  border: 1px solid #bbf7d0;
  color: var(--green-text);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.shield-icon { font-size: 13px; }

/* Page Container */
.page-container {
  flex: 1;
  padding: 26px 28px;
}

/* Page sections */
.page { display: none; animation: fadeSlideIn 0.25s ease; }
.page.active { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Page Header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 14px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.page-title-audit {
  background: linear-gradient(135deg, #dc2626, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

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

.encryption-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 600;
}

.enc-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.6s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}

/* =============================================
   SHARED FORM COMPONENTS
   ============================================= */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 11px;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.input-suffix {
  position: absolute;
  right: 11px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  pointer-events: none;
}

.input-clear {
  position: absolute;
  right: 11px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  display: none;
  z-index: 2;
}
.input-clear:hover { color: var(--red); }

.form-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  padding: 10px 13px;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-surface);
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:disabled { opacity: 0.45; cursor: not-allowed; background: var(--bg-muted); }
.form-input.has-icon { padding-left: 38px; }
.form-input.has-suffix { padding-right: 38px; }

.form-input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Select */
.select-wrapper { position: relative; }

.form-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  padding: 10px 34px 10px 13px;
  outline: none;
  transition: var(--transition);
  appearance: none;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-select:disabled { opacity: 0.45; cursor: not-allowed; background: var(--bg-muted); }

.select-arrow {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 11px;
}

/* Textarea */
.form-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  padding: 10px 13px;
  outline: none;
  transition: var(--transition);
  resize: vertical;
  min-height: 60px;
}

.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea:disabled { opacity: 0.45; cursor: not-allowed; background: var(--bg-muted); }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.required { color: var(--red); }

.field-hint {
  font-size: 11.5px;
  color: var(--accent);
  margin-top: 4px;
  min-height: 16px;
  font-weight: 500;
}

/* =============================================
   CARD
   ============================================= */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  position: relative;
  transform: translateX(110%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { transform: translateX(110%); opacity: 0; transition: all 0.25s ease; }

.toast-success { border-color: #bbf7d0; box-shadow: var(--shadow-lg), 0 0 0 1px #bbf7d0; }
.toast-error   { border-color: #fecdd3; box-shadow: var(--shadow-lg), 0 0 0 1px #fecdd3; }
.toast-warning { border-color: #fde68a; box-shadow: var(--shadow-lg), 0 0 0 1px #fde68a; }
.toast-info    { border-color: #bfdbfe; box-shadow: var(--shadow-lg), 0 0 0 1px #bfdbfe; }

.toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.toast-msg   { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

.toast-close {
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: var(--transition);
}
.toast-close:hover { color: var(--text-primary); }

.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: var(--green);
  animation: toast-shrink linear forwards;
}
.toast-error .toast-progress   { background: var(--red); }
.toast-warning .toast-progress { background: var(--amber); }
.toast-info .toast-progress    { background: var(--blue); }

@keyframes toast-shrink {
  from { width: 100%; } to { width: 0%; }
}

/* =============================================
   SUPER ADMIN BADGE
   ============================================= */
.super-admin-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: var(--red);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* =============================================
   PLACEHOLDER PAGES (dashboard etc.)
   ============================================= */
.placeholder-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  gap: 14px;
}

.ph-icon { font-size: 60px; opacity: 0.2; }

.placeholder-page h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
}

.placeholder-page p {
  color: var(--text-muted);
  font-size: 14px;
  opacity: 0.7;
}

/* =============================================
   DASHBOARD MAP WIDGET
   ============================================= */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.dash-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dash-stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon-blue   { background: var(--blue-bg);  }
.stat-icon-green  { background: var(--green-bg); }
.stat-icon-amber  { background: var(--amber-bg); }
.stat-icon-purple { background: #f3e8ff; }
.stat-icon-red    { background: var(--red-bg);   }

.dash-stat-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.dash-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.dash-stat-change {
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 4px;
}
.dash-stat-change.up { color: var(--green); }
.dash-stat-change.down { color: var(--red); }

.dashboard-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Transfer Bakiyeleri (Banka Hesapları) */
.transfer-balances-card { grid-column: span 1; }
.transfer-balances-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  max-height: 320px;
  overflow-y: auto;
}
.transfer-balance-row:hover {
  border-color: rgba(5, 150, 105, 0.45);
  background: #f0fdf4;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.08);
  transform: translateY(-1px);
}
@keyframes pulse-dot-green { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }


.recent-activity {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.activity-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.activity-list { padding: 12px 0; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 22px;
  transition: background 0.15s;
}
.activity-item:hover { background: var(--bg-hover); }

.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.dot-green  { background: var(--green); }
.dot-red    { background: var(--red); }
.dot-amber  { background: var(--amber); }
.dot-blue   { background: var(--blue); }

.activity-content { flex: 1; }
.activity-action { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.activity-detail { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.activity-time { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; flex-shrink: 0; margin-top: 3px; }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 40, 0.5);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 38px 40px;
  width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-icon { font-size: 44px; margin-bottom: 14px; }
.modal-title { font-size: 19px; font-weight: 800; margin-bottom: 7px; color: var(--text-primary); }
.modal-desc  { font-size: 13.5px; color: var(--text-muted); margin-bottom: 26px; }

.pin-inputs { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }

.pin-input {
  width: 44px; height: 52px;
  background: var(--bg-muted);
  border: 1.5px solid var(--border-normal);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.pin-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  transform: scale(1.05);
  background: white;
}

.pin-input.error {
  border-color: var(--red);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.pin-error { color: var(--red); font-size: 12.5px; margin-bottom: 14px; font-weight: 500; }

.modal-actions { display: flex; gap: 10px; justify-content: center; }

.btn-modal-cancel {
  padding: 10px 22px;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-modal-cancel:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-modal-confirm {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border: none;
  border-radius: var(--r-md);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-modal-confirm:hover { transform: translateY(-1px); box-shadow: 0 4px 14px var(--accent-glow); }

.modal-hint { margin-top: 18px; font-size: 12px; color: var(--text-muted); }
.modal-hint code {
  background: var(--bg-muted);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
}

/* =============================================
   NEW ELEMENTS (CUSTOMERS, VEHICLES, REPORTS, SETTINGS)
   ============================================= */

/* Modal slide animation for customer modal */
@keyframes modalIn {
  from { transform: translateY(-20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* User avatar chip */
.user-chip-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: white;
  flex-shrink: 0;
  margin-right: 8px;
}

/* Plate badge formatting */
.plate-badge {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-block;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-xs);
}

/* Limit column styles */
.limit-status-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 140px;
}
.limit-remaining-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
}
.limit-remaining-text.limit-warning { color: var(--amber); }
.limit-remaining-text.limit-danger { color: var(--red); }

.limit-mini-bar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}
.limit-mini-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
}
.limit-mini-fill.limit-warning { background: var(--amber); }
.limit-mini-fill.limit-danger { background: var(--red); }

/* Status Badges */
.status-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status-success { background: var(--green-bg); color: var(--green-text); border: 1px solid #bbf7d0; }
.status-warning { background: var(--amber-bg); color: var(--amber-text); border: 1px solid #fde68a; }
.status-danger  { background: var(--red-bg); color: var(--red-text); border: 1px solid #fecdd3; }

/* Text color helpers */
.text-success { color: var(--green) !important; }
.text-danger { color: var(--red) !important; }
.text-warning { color: var(--amber) !important; }

/* Print Styles — sayfa yapısıyla birebir görünüm */
@media print {
  body.printing .sidebar,
  body.printing .topbar,
  body.printing .page-header-actions,
  body.printing .audit-filters,
  body.printing .settings-cashier-warning,
  body.printing .toast-container,
  body.printing #toast-container {
    display: none !important;
  }
  body.printing .page {
    display: none !important;
  }
  body.printing .page.active {
    display: block !important;
  }
  body.printing .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
  }
  body.printing .card,
  body.printing .dashboard-grid,
  body.printing .audit-table-wrapper {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
  body.printing .audit-table {
    border-collapse: collapse !important;
    width: 100% !important;
  }
  body.printing .audit-table th,
  body.printing .audit-table td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
    word-break: break-word;
  }
  body.printing .pagination-wrapper,
  body.printing .btn-page,
  body.printing .sort-icon {
    display: none !important;
  }
  body.printing .page-header,
  body.printing .page-title,
  body.printing .page-subtitle {
    page-break-after: avoid;
  }
  body.printing table,
  body.printing tr {
    page-break-inside: avoid;
  }
}
/* =============================================
   AYTEMIZ FUEL PRICES WIDGET
   ============================================= */
.aytemiz-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: var(--transition);
}

.aytemiz-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.aytemiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.aytemiz-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aytemiz-logo {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #e30613, #ff5e00);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
}

.aytemiz-main-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.aytemiz-sub-title {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}

.btn-aytemiz-sync {
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
  outline: none;
}

.btn-aytemiz-sync:hover {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent-dark);
  transform: rotate(180deg) scale(1.08);
  box-shadow: 0 4px 10px var(--accent-glow);
}

.btn-aytemiz-sync.spinning {
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.aytemiz-prices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.aytemiz-price-item {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.aytemiz-price-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--theme-color);
  opacity: 0.7;
  border-radius: 16px 16px 0 0;
  transition: opacity 0.3s ease;
}

.aytemiz-price-item:hover {
  border-color: var(--theme-color);
  box-shadow: 0 12px 28px -4px var(--theme-glow), 0 8px 12px -6px var(--theme-glow);
  transform: translateY(-4px);
}

.aytemiz-price-item:hover::before {
  opacity: 1;
}

/* Individual Fuel Theme Configurations */
.aytemiz-price-item.benzin-card {
  --theme-color: #ef4444; /* Premium Rose/Red */
  --theme-bg-alpha: rgba(239, 68, 68, 0.06);
  --theme-glow: rgba(239, 68, 68, 0.12);
}

.aytemiz-price-item.motorin-card {
  --theme-color: #3b82f6; /* Modern Blue */
  --theme-bg-alpha: rgba(59, 130, 246, 0.06);
  --theme-glow: rgba(59, 130, 246, 0.12);
}

.aytemiz-price-item.lpg-card {
  --theme-color: #f59e0b; /* Bright Amber */
  --theme-bg-alpha: rgba(245, 158, 11, 0.06);
  --theme-glow: rgba(245, 158, 11, 0.12);
}

.ayp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.ayp-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--theme-bg-alpha);
  color: var(--theme-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.aytemiz-price-item:hover .ayp-icon {
  transform: scale(1.1) rotate(6deg);
}

.ayp-badge {
  font-size: 9px;
  font-weight: 800;
  color: var(--theme-color);
  background: var(--theme-bg-alpha);
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(135, 135, 135, 0.05);
}

.ayp-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.ayp-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ayp-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
  margin-top: 1px;
}

@media (max-width: 600px) {
  .aytemiz-prices-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.aytemiz-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-muted);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.ay-dot {
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse-dot-orange 1.5s infinite;
}

@keyframes pulse-dot-orange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
}

@keyframes pulse-dot-indigo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0); }
}

/* Cari Ekstre: yeni eklenen işlem flaşı */
@keyframes chRowFlash {
  0%, 100% { background-color: #fff7d6; }
  50%      { background-color: #fde68a; }
}
.ch-row-flash {
  animation: chRowFlash 1.1s ease-in-out 3;
}

@keyframes chBadgePop {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

.ay-update-label {
  font-weight: 500;
}

.btn-settings-auto {
  background: var(--accent-light);
  border: 1.5px dashed var(--accent);
  color: var(--accent-dark);
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-settings-auto:hover {
  background: var(--bg-active);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.btn-settings-auto:active {
  transform: translateY(0);
}

.btn-settings-auto:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* =============================================
   SIDEBAR OVERLAY (Mobile)
   ============================================= */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 99;
  animation: fadeIn 0.2s ease;
}
.sidebar-overlay.active { display: block; }

/* =============================================
   RESPONSIVE — Tablet (≤920px)
   ============================================= */
@media (max-width: 920px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex !important; }
  .page-container { padding: 14px 16px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-bottom { grid-template-columns: 1fr; }

  /* Topbar compacted */
  .live-clock { display: none; }
  .security-badge span:last-child { display: none; }
  .security-badge { padding: 5px 8px; border-radius: 50%; }
  .topbar { padding: 0 16px; }

  /* Tables: horizontal scroll */
  .audit-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .audit-table { min-width: 700px; }

  /* Page header stacks */
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-header-actions { width: 100%; }

  /* Toast mobile */
  .toast-container { top: auto; bottom: 16px; right: 8px; left: 8px; }
  .toast { min-width: 0; max-width: 100%; }
}

/* =============================================
   RESPONSIVE — Mobile (≤640px)
   ============================================= */
@media (max-width: 640px) {
  :root { --topbar-h: 56px; }

  /* Dashboard */
  .dashboard-grid { grid-template-columns: 1fr; gap: 12px; }
  .dash-stat-card { padding: 16px 18px; }
  .dash-stat-val { font-size: 22px; }
  .dashboard-bottom { grid-template-columns: 1fr; gap: 14px; }

  /* Page */
  .page-container { padding: 12px 14px; }
  .page-title { font-size: 20px; }

  /* Sidebar user section compact */
  .sidebar-user { padding: 12px 14px; gap: 8px; }
  .user-info .user-name { font-size: 12px; }

  /* Audit stats → 2 col */
  .audit-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .astat-val { font-size: 22px; }

  /* Audit table → card layout */
  .audit-table-wrapper { overflow-x: auto; }
  .audit-table { min-width: 640px; }
  .cell-detail { max-width: 120px; }

  /* Filter row stacks */
  .filter-row { flex-direction: column; gap: 10px; }
  .filter-group { min-width: 0; flex: none; width: 100%; }
  .filter-actions { flex-direction: row; width: 100%; }
  .btn-filter-apply, .btn-filter-reset { flex: 1; text-align: center; }

  /* Modals fullscreen-ish */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    width: 100%;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 28px 22px 34px;
    animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes slideUpModal {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  /* Customer modal */
  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--r-xl) var(--r-xl) 0 0 !important;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-overlay[style*="align-items"] { align-items: flex-end !important; }

  /* Tables as scrollable */
  .audit-table-wrapper, .customers-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r-xl);
  }

  /* Page header actions fill row */
  .page-header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .page-header-actions > * { flex: 1; min-width: 120px; text-align: center; justify-content: center; }

  /* Breadcrumb shorter */
  .bc-sep, .breadcrumb > span:first-child { display: none; }

  /* Period pills wrap */
  .period-pills-container { gap: 8px; }
  .period-pill-btn { padding: 8px 14px; font-size: 12px; }

  /* Pagination stacks */
  .audit-pagination { flex-direction: column; align-items: center; gap: 10px; padding: 14px; }
  .pagination-wrapper { flex-direction: column !important; align-items: center !important; }

  /* Confirm actions stack */
  .confirm-actions { flex-direction: column; }
  .btn-confirm { width: 100%; }
  .btn-reset { width: 100%; }

  /* Transaction type buttons */
  .transaction-type-selector { grid-template-columns: 1fr; gap: 10px; }
  .type-btn { padding: 16px; flex-direction: row; gap: 12px; }
  .type-btn-icon { font-size: 28px; }
  .type-btn-label { font-size: 14px; }

  /* Detail grid stacks */
  .detail-grid { grid-template-columns: 1fr; }

  /* Selected customer card stacks */
  .selected-customer-card { flex-wrap: wrap; }
  .sc-change-btn { width: 100%; text-align: center; }

  /* Settings */
  .settings-cashier-warning { padding: 14px; }

  /* Reports */
  #rep-custom-date-panel { flex-direction: column; }

  /* User management table scroll */
  .users-table-wrapper { overflow-x: auto; }

  /* Due dates stacks */
  .due-dates-grid { grid-template-columns: 1fr !important; }
}

/* =============================================
   RESPONSIVE — Very Small (≤380px)
   ============================================= */
@media (max-width: 380px) {
  .brand-name { font-size: 13px; }
  .nav-item { font-size: 12.5px; padding: 8px 10px; }
  .page-title { font-size: 18px; }
  .audit-stats { grid-template-columns: 1fr 1fr; }
  .astat-val { font-size: 18px; }
  .dash-stat-val { font-size: 20px; }
  .topbar { padding: 0 12px; }
  
  /* Very small mobile modal */
  .modal-card {
    max-height: 85vh !important;
  }
  .modal-card form {
    padding: 16px !important;
  }
}

/* =============================================
   INLINE STYLE MOBILE FIXES
   ============================================= */
@media (max-width: 768px) {
  /* Fix inline grid styles for mobile */
  [style*="grid-template-columns: 1fr 1.3fr"],
  [style*="grid-template-columns:1fr 1.3fr"] {
    grid-template-columns: 1fr !important;
  }
  
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix inline min-width styles */
  [style*="min-width:300px"],
  [style*="min-width: 300px"],
  [style*="min-width:320px"],
  [style*="min-width: 320px"] {
    min-width: 0 !important;
    width: 100% !important;
  }
  
  /* Fix inline flex styles */
  [style*="display:flex"][style*="gap:15px"] {
    flex-wrap: wrap !important;
  }
  
  /* Fix inline padding for mobile */
  [style*="padding:24px"] {
    padding: 16px !important;
  }
  
  [style*="padding: 24px"] {
    padding: 16px !important;
  }
  
  /* Fix vehicle result card grid */
  #vehicle-result-card > div:first-child {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix financial summary card grid */
  #v-financial-summary-card [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix fuel summary card grid */
  #v-fuel-summary-card [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix reports grid */
  #page-reports [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix user modal grid */
  #user-modal-overlay [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix user modal page access grid */
  #user-modal-overlay [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix settings form */
  #settings-prices-form .form-group {
    width: 100% !important;
  }
  
  /* Fix customer modal */
  #customer-modal-overlay .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  /* Fix transaction edit modal */
  #tx-edit-modal-overlay .modal-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Fix profile modal */
  #profile-modal-overlay .modal-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Fix confirm modal */
  #confirm-modal-overlay .confirm-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 16px !important;
  }
  
  /* Fix history filters */
  #v-history-filters {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  #v-history-filters > div {
    flex-wrap: wrap !important;
  }
  
  /* Fix audit filters */
  .audit-filters .filter-row {
    flex-direction: column !important;
  }
  
  .audit-filters .filter-group {
    width: 100% !important;
    min-width: 0 !important;
  }
  
  /* Fix pagination wrapper */
  .pagination-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  
  /* Fix debt info container */
  .debt-info-container {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .debt-info-container > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .btn-pay-all {
    width: 100% !important;
    justify-content: center !important;
  }
  
  /* Fix selected customer card */
  .selected-customer-card {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
  }
  
  .selected-customer-card .sc-avatar {
    margin: 0 auto !important;
  }
  
  .selected-customer-card .sc-info {
    text-align: center !important;
  }
  
  .selected-customer-card .sc-change-btn {
    width: 100% !important;
  }
  
  /* Fix confirm summary */
  .confirm-summary {
    padding: 14px !important;
  }
  
  /* Fix calc preview */
  .calc-preview {
    padding: 12px !important;
  }
  
  /* Fix step body */
  .step-body {
    padding: 16px !important;
  }
  
  /* Fix step header */
  .step-header {
    padding: 14px 16px !important;
    gap: 10px !important;
  }
  
  /* Fix step number */
  .step-number {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }
  
  /* Fix step title */
  .step-title {
    font-size: 14px !important;
  }
  
  /* Fix step desc */
  .step-desc {
    font-size: 12px !important;
  }
  
  /* Fix autocomplete input */
  .autocomplete-input {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
  
  /* Fix form inputs for mobile */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
  
  /* Fix modal card max height */
  .modal-card {
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  
  /* Fix modal form */
  .modal-card form {
    max-height: 70vh !important;
    overflow-y: auto !important;
  }
  
  /* Fix aytemiz prices grid */
  .aytemiz-prices-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix dashboard bottom */
  .dashboard-bottom {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix reports period pills */
  .period-pills-container {
    flex-direction: column !important;
  }
  
  .period-pill-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  
  /* Fix reports custom date panel */
  #rep-custom-date-panel {
    flex-direction: column !important;
  }
  
  #rep-custom-date-panel .filter-group {
    width: 100% !important;
  }
  
  /* Fix reports stats grid */
  #rep-period-stats-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix global stats grid */
  #page-reports .dashboard-grid:not(#rep-period-stats-grid) {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix reports charts */
  .reports-charts-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix vehicle info grid */
  .vehicle-info-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix financial summary grid */
  .financial-summary-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix fuel summary grid */
  .fuel-summary-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix settings container */
  .settings-container {
    max-width: 100% !important;
  }
  
  /* Fix user form grids */
  .user-form-grid {
    grid-template-columns: 1fr !important;
  }
  
  .user-hours-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix user modal checkboxes */
  #user-modal-overlay [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix user modal time inputs */
  #user-modal-overlay [style*="grid-template-columns:1fr 1fr"]:not([class]) {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix customer modal form */
  #customer-add-form {
    gap: 12px !important;
  }
  
  /* Fix customer modal header */
  #customer-modal-overlay .modal-header {
    padding: 14px 16px !important;
  }
  
  /* Fix customer modal form padding */
  #customer-add-form {
    padding: 16px !important;
  }
  
  /* Fix customer modal buttons */
  #customer-add-form > div:last-child {
    flex-direction: column !important;
  }
  
  #customer-add-form > div:last-child button {
    width: 100% !important;
  }
  
  /* Fix tx edit modal form */
  #tx-edit-form {
    gap: 12px !important;
    padding: 16px !important;
  }
  
  /* Fix tx edit modal buttons */
  #tx-edit-form > div:last-child {
    flex-direction: column !important;
  }
  
  #tx-edit-form > div:last-child button {
    width: 100% !important;
  }
  
  /* Fix profile modal form */
  #profile-form {
    gap: 12px !important;
    padding: 16px !important;
  }
  
  /* Fix profile modal buttons */
  #profile-form > div:last-child {
    flex-direction: column !important;
  }
  
  #profile-form > div:last-child button {
    width: 100% !important;
  }
  
  /* Fix user modal form */
  #user-form {
    gap: 12px !important;
    padding: 16px !important;
  }
  
  /* Fix user modal buttons */
  #user-form > div:last-child {
    flex-direction: column !important;
  }
  
  #user-form > div:last-child button {
    width: 100% !important;
  }
  
  /* Fix settings branding form */
  #settings-branding-form {
    gap: 12px !important;
  }
  
  /* Fix settings branding buttons */
  #settings-branding-form > div:last-child {
    flex-direction: column !important;
  }
  
  #settings-branding-form > div:last-child button {
    width: 100% !important;
  }
  
  /* Fix settings prices form */
  #settings-prices-form {
    gap: 12px !important;
  }
  
  /* Fix settings prices buttons */
  #settings-prices-form > div:last-child {
    flex-direction: column !important;
  }
  
  #settings-prices-form > div:last-child button {
    width: 100% !important;
  }
  
  /* Fix audit filters */
  .audit-filters {
    padding: 16px !important;
  }
  
  /* Fix audit stats */
  .audit-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  
  /* Fix audit table */
  .audit-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .audit-table {
    min-width: 600px !important;
  }
  
  /* Fix audit pagination */
  .audit-pagination {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  
  /* Fix pagination info */
  .pagination-info {
    text-align: center !important;
  }
  
  /* Fix pagination controls */
  .pagination-controls {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
  
  /* Fix filter actions */
  .filter-actions {
    flex-direction: row !important;
    width: 100% !important;
  }
  
  .btn-filter-apply,
  .btn-filter-reset {
    flex: 1 !important;
    text-align: center !important;
  }
  
  /* Fix page header */
  .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .page-header-actions {
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  
  .page-header-actions > * {
    flex: 1 !important;
    min-width: 120px !important;
    text-align: center !important;
    justify-content: center !important;
  }
  
  /* Fix breadcrumb */
  .bc-sep,
  .breadcrumb > span:first-child {
    display: none !important;
  }
  
  /* Fix topbar */
  .topbar {
    padding: 0 16px !important;
  }
  
  /* Fix live clock */
  .live-clock {
    display: none !important;
  }
  
  /* Fix security badge */
  .security-badge span:last-child {
    display: none !important;
  }
  
  .security-badge {
    padding: 5px 8px !important;
    border-radius: 50% !important;
  }
  
  /* Fix menu toggle */
  .menu-toggle {
    display: flex !important;
  }
  
  /* Fix page container */
  .page-container {
    padding: 14px 16px !important;
  }
  
  /* Fix page title */
  .page-title {
    font-size: 20px !important;
  }
  
  /* Fix dashboard grid */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  /* Fix dash stat card */
  .dash-stat-card {
    padding: 16px 18px !important;
  }
  
  /* Fix dash stat val */
  .dash-stat-val {
    font-size: 22px !important;
  }
  
  /* Fix sidebar user */
  .sidebar-user {
    padding: 12px 14px !important;
    gap: 8px !important;
  }
  
  .user-info .user-name {
    font-size: 12px !important;
  }
  
  /* Fix astat val */
  .astat-val {
    font-size: 22px !important;
  }
  
  /* Fix cell detail */
  .cell-detail {
    max-width: 120px !important;
  }
  
  /* Fix transaction type selector */
  .transaction-type-selector {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  /* Fix type button */
  .type-btn {
    padding: 16px !important;
    flex-direction: row !important;
    gap: 12px !important;
  }
  
  .type-btn-icon {
    font-size: 28px !important;
  }
  
  .type-btn-label {
    font-size: 14px !important;
  }
  
  /* Fix detail grid */
  .detail-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix confirm actions */
  .confirm-actions {
    flex-direction: column !important;
  }
  
  .btn-confirm,
  .btn-reset {
    width: 100% !important;
  }
  
  .btn-confirm {
    font-size: 14px !important;
    padding: 13px 20px !important;
  }
  
  /* Fix calc preview */
  .calc-preview {
    padding: 12px 14px !important;
  }
  
  .calc-row {
    font-size: 12.5px !important;
  }
  
  .calc-row-total {
    font-size: 14px !important;
  }
  
  /* Fix autocomplete dropdown */
  .autocomplete-dropdown {
    max-height: 240px !important;
  }
  
  .ac-item {
    padding: 10px 12px !important;
  }
  
  /* Fix selected customer card */
  .selected-customer-card {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  
  .sc-change-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 9px 0 !important;
  }
  
  /* Fix settings cashier warning */
  .settings-cashier-warning {
    padding: 14px !important;
  }
  
  /* Fix users table wrapper */
  .users-table-wrapper {
    overflow-x: auto !important;
  }
  
  /* Fix due dates grid */
  .due-dates-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix toast container */
  .toast-container {
    top: auto !important;
    bottom: 16px !important;
    right: 8px !important;
    left: 8px !important;
  }
  
  .toast {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  
  /* Fix modal overlay */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  
  .modal-box {
    width: 100% !important;
    border-radius: var(--r-xl) var(--r-xl) 0 0 !important;
    padding: 28px 22px 34px !important;
  }
  
  /* Fix modal card */
  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--r-xl) var(--r-xl) 0 0 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  
  .modal-overlay[style*="align-items"] {
    align-items: flex-end !important;
  }
  
  /* Fix tables as scrollable */
  .audit-table-wrapper,
  .customers-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: var(--r-xl) !important;
  }
}

/* =============================================
   CUSTOMER ACTIONS & CUSTOM CONFIRM MODAL
   ============================================= */
.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.btn-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
}

.btn-edit {
  color: var(--accent);
}

.btn-edit:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-dark);
}

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

.btn-delete:hover {
  border-color: var(--red);
  background: var(--red-bg);
  color: var(--red-text);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.btn-shortcut-tx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  height: 32px;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
}

.btn-shortcut-tx:hover {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.btn-shortcut-tx:active {
  transform: translateY(0);
}

.confirm-card {
  background: white;
  border-radius: 20px;
  width: 420px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 30px;
  text-align: center;
}

/* =============================================
   PAGINATION & SORTING
   ============================================= */
.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-page {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  user-select: none;
}

.btn-page:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-page.active {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px var(--accent-glow);
}

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

.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background 0.15s ease;
}

.sortable:hover {
  background: var(--bg-hover) !important;
}

.sort-icon {
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-muted);
  display: inline-block;
}

.sortable.asc .sort-icon {
  color: var(--accent);
}

.sortable.desc .sort-icon {
  color: var(--accent);
}

/* =============================================
   Reports Page — Period Selection Styling
   ============================================= */
.period-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.period-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.period-pill-btn span {
  font-size: 14px;
}

.period-pill-btn:hover {
  border-color: var(--border-normal);
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.period-pill-btn.active {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  font-weight: 700;
}

.period-pill-btn.active:hover {
  background: linear-gradient(135deg, var(--accent-dark), #6d28d9);
  color: white;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

#rep-custom-date-panel {
  display: none;
  padding: 20px;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  margin-top: 14px;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  animation: slideDownFilter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* =============================================
   User Management — Roles & Badges Styling
   ============================================= */
.badge-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-role-cashier { background: #ecfdf5; color: #047857; border: 1px solid rgba(4,120,87,0.1); }
.badge-role-manager { background: #eff6ff; color: #1d4ed8; border: 1px solid rgba(29,78,216,0.1); }
.badge-role-superadmin { background: #fef2f2; color: #b91c1c; border: 1px solid rgba(185,28,28,0.1); }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.badge-status-active { background: #dcfce7; color: #15803d; }
.badge-status-inactive { background: #f3f4f6; color: #4b5563; }

.user-restrict-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-muted);
  border: 1px solid var(--border-normal);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 6px;
  margin: 2px;
}

.btn-action-edit {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border-normal);
  background: white;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  transition: all 0.2s;
  font-family: inherit;
}
.btn-action-edit:hover { background: var(--bg-hover); transform: translateY(-0.5px); }

.btn-action-delete {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid #fee2e2;
  background: #fff5f5;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red);
  transition: all 0.2s;
  font-family: inherit;
}
.btn-action-delete:hover { background: #fecdd3; transform: translateY(-0.5px); }

/* =============================================
   GLOBAL PRINT STYLES (PDF & Yazdırma)
   ============================================= */
@media print {
  @page {
    size: A4 landscape;
    margin: 8mm 10mm 8mm 10mm;
  }

  /* 1. Sol Menü, Üst Başlık, Butonlar ve Arayüz Kontrollerini Gizle */
  #sidebar,
  .sidebar,
  .sidebar-backdrop,
  .app-header,
  .page-header-actions,
  .pagination-wrapper,
  .pagination-buttons,
  .modal-overlay,
  #toast-container,
  button,
  .btn-primary,
  .btn-secondary,
  .btn-action-edit,
  .btn-action-delete,
  .btn-pl-ticket-detail,
  .btn-pl-pay,
  .btn-pl-statement,
  .btn-aging-pay,
  .btn-aging-statement,
  .audit-filters,
  .settings-container,
  #pl-search-input,
  #pl-filter-risk,
  #pl-sort-select,
  #btn-pl-clear-filter,
  #btn-pl-page-first,
  #btn-pl-page-prev,
  #btn-pl-page-next,
  #btn-pl-page-last,
  .btn-pl-page-num,
  #pl-pagination,
  .sub-tabs-container {
    display: none !important;
  }

  /* Tablolardaki son kolon olan 'İşlemler' kolonunu gizle */
  #page-profit-loss table th:last-child,
  #page-profit-loss table td:last-child,
  #page-reports table th:last-child,
  #page-reports table td:last-child,
  #page-customers table th:last-child,
  #page-customers table td:last-child {
    display: none !important;
  }

  /* 2. Ana Düzen ve Sayfa Konumu */
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 9pt !important;
    line-height: 1.3 !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .app-layout {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .page-container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .page {
    display: none !important;
  }

  .page.active {
    display: block !important;
    width: 100% !important;
  }

  /* 3. Başlıklar & Kartlar */
  .page-header {
    margin-bottom: 10px !important;
    padding-bottom: 6px !important;
    border-bottom: 2px solid #0f172a !important;
  }

  .page-title {
    font-size: 15pt !important;
    color: #0f172a !important;
    font-weight: 800 !important;
  }

  .page-subtitle {
    font-size: 8.5pt !important;
    color: #475569 !important;
  }

  #pl-prices-bar {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    margin-bottom: 10px !important;
    padding: 6px 12px !important;
    page-break-inside: avoid !important;
  }

  .dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    page-break-inside: avoid !important;
  }

  .dash-stat-card {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
  }

  .dash-stat-val {
    font-size: 12pt !important;
    font-weight: 800 !important;
  }

  .dash-stat-label {
    font-size: 7.5pt !important;
    color: #475569 !important;
  }

  /* 4. Tablo Formatı */
  .table, .audit-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 8pt !important;
    margin-top: 8px !important;
  }

  .table th, .audit-table th {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 5px 6px !important;
    font-size: 7.5pt !important;
  }

  .table td, .audit-table td {
    border: 1px solid #e2e8f0 !important;
    padding: 4px 6px !important;
    font-size: 8pt !important;
  }

  .table tr, .audit-table tr {
    page-break-inside: avoid !important;
  }

  span {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
