/* ============================================================
   UETDSPRO — Tasarım Sistemi (Prototip)
   Modern, mobil-öncelikli SaaS arayüzü
   ============================================================ */

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

:root {
  /* Marka renkleri */
  --brand-900: #0b1220;
  --brand-800: #101a30;
  --brand-700: #17233f;
  --primary: #4f46e5;      /* indigo */
  --primary-600: #4338ca;
  --primary-050: #eef2ff;
  --accent: #06b6d4;       /* cyan */
  --success: #10b981;
  --success-050: #ecfdf5;
  --warning: #f59e0b;
  --warning-050: #fffbeb;
  --danger: #ef4444;
  --danger-050: #fef2f2;

  /* Nötr */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --line: #e6e9f2;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow: 0 6px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.14);
  --grad: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Yardımcılar ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-muted { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge-success { background: var(--success-050); color: #047857; }
.badge-success .dot { background: var(--success); }
.badge-warning { background: var(--warning-050); color: #b45309; }
.badge-warning .dot { background: var(--warning); }
.badge-danger { background: var(--danger-050); color: #b91c1c; }
.badge-danger .dot { background: var(--danger); }
.badge-info { background: var(--primary-050); color: var(--primary-600); }
.badge-info .dot { background: var(--primary); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(79,70,229,.36); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }

/* ---------- Kartlar ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }

/* ============================================================
   UYGULAMA KABUĞU (App Shell) — Sidebar + Topbar
   ============================================================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 264px; flex-shrink: 0; background: var(--brand-900); color: #cbd5e1;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 6px; }
.sidebar .brand {
  display: flex; align-items: center; gap: 11px; padding: 22px 22px 18px;
  color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.3px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 6px 16px rgba(79,70,229,.4);
}
.nav-group-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .09em;
  color: #64748b; padding: 16px 22px 8px; font-weight: 700;
}
.nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px;
  font-size: 14.5px; font-weight: 500; color: #cbd5e1; transition: .15s;
}
.nav a svg { width: 19px; height: 19px; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(79,70,229,.35); }
.nav a .lock { margin-left: auto; opacity: .5; }
.nav a.locked { opacity: .55; cursor: not-allowed; }
.sidebar-foot { margin-top: auto; padding: 16px; }
.plan-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px;
}
.plan-card .t { color: #fff; font-weight: 700; font-size: 14px; }
.plan-card .s { color: #94a3b8; font-size: 12px; margin: 3px 0 10px; }
.bar { height: 6px; background: rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 68px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
}
.topbar .hamb { display: none; background: none; border: none; cursor: pointer; }
.page-title { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.topbar .spacer { flex: 1; }
.search {
  display: flex; align-items: center; gap: 9px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 11px; padding: 9px 13px; width: 280px;
  color: var(--muted);
}
.search input { border: none; background: none; outline: none; font: inherit; width: 100%; color: var(--text); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer; position: relative;
}
.icon-btn .dot-badge { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid #fff; }
.avatar {
  display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer;
}
.avatar .pic { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.avatar .who { font-size: 13px; line-height: 1.2; }
.avatar .who b { display: block; font-weight: 600; }
.avatar .who span { color: var(--muted); font-size: 11.5px; }

.content { padding: 26px 24px 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; letter-spacing: -.5px; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.page-actions { display: flex; gap: 10px; }

/* ---------- İstatistik kartları ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat .top { display: flex; align-items: center; justify-content: space-between; }
.stat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.stat .ic.i1 { background: var(--primary-050); color: var(--primary); }
.stat .ic.i2 { background: var(--warning-050); color: var(--warning); }
.stat .ic.i3 { background: var(--danger-050); color: var(--danger); }
.stat .ic.i4 { background: var(--success-050); color: var(--success); }
.stat .num { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-top: 14px; }
.stat .lbl { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.stat .trend { font-size: 12px; font-weight: 600; }
.trend.up { color: var(--success); } .trend.down { color: var(--danger); }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: right; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data th:first-child, table.data td:first-child { text-align: right; }
table.data td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: #fafbff; }
.cell-strong { font-weight: 600; }
.cell-sub { color: var(--muted); font-size: 12.5px; }
.route { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.route .arrow { color: var(--muted-2); }
.act-icons { display: flex; gap: 6px; justify-content: flex-start; }
.act-icons button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.act-icons button:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Formlar ---------- */
.form-section { margin-bottom: 8px; }
.form-section-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.form-section-title .n { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-050); color: var(--primary); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.form-section-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px 36px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: #334155; }
.field label .req { color: var(--danger); }
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.input, .select {
  font: inherit; font-size: 14px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--surface); outline: none; transition: .15s; color: var(--text);
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-050); }
.input::placeholder { color: var(--muted-2); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 13px center; padding-left: 36px; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* Yolcu tablosu (form içi) */
.pax-table { width: 100%; border-collapse: collapse; }
.pax-table th { font-size: 12px; color: var(--muted); font-weight: 700; text-align: right; padding: 8px 10px; }
.pax-table td { padding: 6px; }
.pax-table .input { padding: 9px 11px; font-size: 13.5px; width: 100%; }
.pax-remove { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--danger); cursor: pointer; }

/* ---------- Duyuru / bilgi kutusu ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--primary-050); border: 1px solid #dfe3ff; color: #3730a3; font-size: 13.5px; }
.notice svg { flex-shrink: 0; }

/* ============================================================
   MOBİL
   ============================================================ */
.backdrop { display: none; }
@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .backdrop.show { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 50; }
  .topbar .hamb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); }
  .search { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .avatar .who { display: none; }
  .content { padding: 18px 16px 40px; }
  .page-head h1 { font-size: 21px; }
  .stat .num { font-size: 25px; }
}
