/* ==========================================================================
   UZKANLAR RENT A CAR - YÖNETİM PANELİ MASTER STYLE SHEET
   Mimarisi: SaaS Koyu Tema, WhatsApp-Style Bütünleşik Inbox ve Özel Kaydırma Çubukları
   ========================================================================== */

:root {
    /* PREMIUM SAFİR VE GECE TONLARI */
    --bg-main: #0f172a;
    --bg-panel: rgba(15, 23, 42, 0.85);
    --bg-card: rgba(30, 41, 59, 0.75);
    --bg-card-strong: #1e293b;
    
    /* GÖZ ALICI VURGU VE OPERASYON RENKLERİ */
    --gold: #eab308;
    --gold-soft: #fde68a;
    --red: #ef4444;
    --red-soft: rgba(239, 68, 68, 0.2);
    --blue: #3b82f6;
    --blue-soft: rgba(59, 130, 246, 0.2);
    --green: #22c55e;
    
    /* SINIRLAR VE AYRAÇLAR */
    --stroke: rgba(148, 163, 184, 0.15);
    --stroke-strong: rgba(234, 179, 8, 0.25);
    
    /* TİPOGRAFİ RENKLERİ */
    --text-main: #e2e8f0;
    --text-soft: #94a3b8;
    
    /* GÖLGELER VE KÖŞE YUVARLAMALARI (RADIUS) */
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

/* Mobile app inspired admin refresh */
:root {
    --bg-main: #f4f7fb;
    --bg-soft: #f8fafd;
    --surface: #ffffff;
    --surface-muted: #f8fafd;
    --primary: #091a33;
    --primary-soft: #12315b;
    --accent: #ffb224;
    --accent-strong: #ff8a1f;
    --text: #10203a;
    --text-muted: #6c7891;
    --text-subtle: #8a94aa;
    --border: #e4eaf3;
    --success: #1f9d63;
    --danger: #d94b4b;
    --info: #2f80ed;
    --shadow-soft: 0 18px 50px rgba(13, 27, 42, 0.08);
}

body.admin-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 178, 36, 0.16), transparent 26%),
        linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
    color: var(--text);
}

.admin-body::before {
    display: none;
}

.site-header {
    background: rgba(244, 247, 251, 0.86);
    backdrop-filter: blur(18px);
}

.header-shell,
.top-horizontal-nav,
.column-card,
.form-card,
.list-card,
.preview-card,
.system-alert,
.gmail-sidebar,
.gmail-detail-view,
.reservation-table-card,
.reservation-requests {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.header-shell {
    width: min(100% - 32px, 1400px);
    border-radius: 24px;
}

.brand-mark,
.nav-brand-title,
.panel-header h3,
.column-head h4,
.mail-card h4,
.vehicle-card h4 {
    color: var(--primary);
}

.header-nav,
.icon-action,
.eyebrow,
.mail-meta span,
.vehicle-meta span,
.column-head span {
    color: var(--text-muted);
}

.hero-panel {
    width: 100%;
    background: var(--primary);
    color: var(--surface);
    border: 0;
    box-shadow: var(--shadow-soft);
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.72);
}

.stat-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.stat-card strong {
    color: var(--primary);
}

.stat-card span,
.stat-card small {
    color: var(--text-muted);
}

.dashboard-main,
.site-footer {
    width: min(100% - 32px, 1400px);
}

.top-horizontal-nav {
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 28px;
}

.nav-tabs-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.tab-button,
.inbox-tab,
.filter-chip {
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-weight: 800;
}

.tab-button.is-active,
.inbox-tab.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--surface);
}

.btn {
    border-radius: 14px;
}

.btn-gold {
    background: var(--primary);
    color: var(--surface);
    box-shadow: 0 12px 24px rgba(9, 26, 51, 0.14);
}

.btn-secondary,
.btn-ghost,
.icon-action {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    color: var(--primary-soft);
}

.btn-danger {
    background: #fff0f0;
    border: 1px solid #ffd5d5;
    color: var(--danger);
}

.field-control,
.login-form input,
.form-row textarea {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    color: var(--text);
}

.field-control:focus,
.login-form input:focus,
.form-row textarea:focus {
    background: var(--surface);
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 4px rgba(9, 26, 51, 0.08);
}

.fleet-grid,
.campaign-grid {
    align-items: start;
}

.campaign-grid {
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
}

.campaign-list-card {
    grid-column: 1 / -1;
}

.campaign-preview {
    display: grid;
    gap: 14px;
    min-height: 0;
    padding: 22px;
    overflow: hidden;
    background: var(--primary);
    color: var(--surface);
    border: 0;
}

.campaign-preview h5 {
    margin: 0;
    color: var(--surface);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.campaign-preview p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.campaign-countdown {
    color: #ffd18a !important;
}

.preview-image {
    height: clamp(190px, 30vw, 320px);
    border-color: rgba(255, 255, 255, 0.16);
}

.mail-card,
.vehicle-card,
.master-list-item,
.reservation-mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
}

.mail-body,
.vehicle-copy p {
    color: var(--text-muted);
}

.upload-zone {
    background: #fff3e0;
    border: 1px dashed #ffd18a;
    color: var(--primary);
}

.upload-zone-copy span,
.upload-status {
    color: var(--text-muted);
}

.empty-state {
    background: var(--surface-muted);
    border-color: var(--border);
    color: var(--text-muted);
}

.alarm-kirmizi {
    background: #fffafa;
    border-color: #ffd5d5;
    box-shadow: 0 0 0 1px rgba(217, 75, 75, 0.12);
}

.bilgi-mavi {
    background: #fbfdff;
    border-color: #d7e6fb;
    box-shadow: 0 0 0 1px rgba(47, 128, 237, 0.1);
}

.reservation-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    padding: 9px 14px;
    cursor: pointer;
    border-color: var(--border);
    background: var(--surface);
    font-size: 13px;
}

.filter-chip.is-active {
    background: #fff3e0;
    border-color: #ffd18a;
    color: var(--accent-strong);
}

.reservation-dashboard {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
}

.reservation-requests,
.reservation-table-card {
    padding: 22px;
    border-radius: 28px;
}

.reservation-stack {
    display: grid;
    gap: 14px;
}

.reservation-mini-card {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 20px;
    background: var(--surface-muted);
}

.reservation-mini-card span {
    color: var(--text-subtle);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.reservation-mini-card strong {
    color: var(--text);
    font-size: 17px;
}

.reservation-mini-card small {
    color: var(--text-muted);
    font-weight: 700;
}

.reservation-mini-card em {
    width: fit-content;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3e0;
    color: var(--accent-strong);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.reservation-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.reservation-table th,
.reservation-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.reservation-table th {
    color: var(--text-subtle);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.reservation-table td {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
}

.status-dot.success {
    background: var(--success);
}

.status-dot.info {
    background: var(--info);
}

.status-dot.warning {
    background: var(--accent);
}

.status-dot.danger {
    background: var(--danger);
}

.table-actions {
    color: var(--primary-soft) !important;
}

@media (max-width: 1100px) {
    .campaign-grid,
    .reservation-dashboard {
        grid-template-columns: 1fr;
    }

    .top-horizontal-nav {
        grid-template-columns: 1fr;
    }

    .nav-tabs-group {
        justify-content: flex-start;
    }
}

@media (max-width: 840px) {
    .dashboard-main,
    .site-footer,
    .header-shell {
        width: min(100% - 20px, 1400px);
    }

    .nav-tabs-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }
}

/* ==========================================================================
   1. GLOBAL RESET, TEMEL KURALLAR VE ÖZEL SCROLLBAR
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ÖZEL SCROLLBAR TASARIMI */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(234, 179, 8, 0.1), transparent 30%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 25%),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

/* Arka plan siber ızgara dokusu */
.admin-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.4;
    z-index: 0;
}

/* ==========================================================================
   2. GÜVENLİK GİRİŞ EKRANI (FIREBASE AUTH LOGIN)
   ========================================================================== */
.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.login-card {
    width: min(100%, 460px);
    padding: 40px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid var(--stroke-strong);
    border-radius: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.login-brand {
    margin: 18px 0 10px;
    font-size: 36px;
    letter-spacing: 0.16em;
    font-family: "Cinzel", serif;
}

.login-brand span, .brand-mark span {
    color: var(--gold);
}

.login-copy {
    margin: 0 0 28px;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 14px;
}

.login-form, .admin-form {
    display: grid;
    gap: 18px;
}

.login-form label, .form-row label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
}

.login-form input,
.field-control,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.88);
    color: var(--text-main);
    border-radius: 16px;
    padding: 14px 16px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-form input:focus,
.field-control:focus,
.form-row textarea:focus {
    border-color: rgba(234, 179, 8, 0.72);
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.12);
}

.login-form input::placeholder,
.field-control::placeholder,
.form-row textarea::placeholder {
    color: #94a3b8;
}

.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-main);
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.95) inset;
    transition: background-color 9999s ease-in-out 0s;
}

.login-error {
    margin: 0;
    color: #fca5a5;
    font-size: 14px;
    font-weight: 700;
}

/* ==========================================================================
   3. ÜST SABİT BAR (SITE HEADER)
   ========================================================================== */
.admin-app {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(20px);
}

.header-shell {
    width: min(100% - 32px, 1280px);
    margin: 18px auto 0;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(234, 179, 8, 0.16);
    box-shadow: var(--shadow);
}

.brand-mark {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-family: "Cinzel", serif;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.header-nav a {
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--gold-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   4. HOŞ GELDİNİZ VE KPI İSTATİSTİK PANELİ (HERO PANEL)
   ========================================================================== */
.dashboard-main {
    width: min(100% - 32px, 1280px);
    margin: 26px auto 0;
    padding-bottom: 20px;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
    padding: 28px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(234, 179, 8, 0.08), transparent 50%),
        rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(234, 179, 8, 0.14);
    box-shadow: var(--shadow);
}

.hero-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.18;
    font-family: "Cinzel", serif;
}

.hero-copy p {
    margin: 0;
    max-width: 700px;
    color: var(--text-soft);
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    gap: 16px;
}

.stat-card {
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.stat-card span, .eyebrow, .mail-meta span, .vehicle-meta span {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin: 10px 0 8px;
    font-size: 42px;
    line-height: 1;
}

.stat-card small {
    color: #cbd5e1;
    font-size: 13px;
}

.stat-red { border-color: rgba(239, 68, 68, 0.3); }
.stat-blue { border-color: rgba(59, 130, 246, 0.3); }

/* ==========================================================================
   5. YATAY KONTROL MERKEZİ NAVİGASYONU (TOP HORIZONTAL NAV)
   ========================================================================== */
.dashboard-shell {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.top-horizontal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: 100px;
    padding: 12px 32px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.nav-brand-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.nav-tabs-group {
    display: flex;
    gap: 16px;
}

.nav-tabs-group .tab-button {
    width: auto;
    margin-top: 0;
    padding: 12px 28px;
    border-radius: 100px;
    text-align: center;
    border: 1px solid transparent;
    background: transparent;
    color: #cbd5e1;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tabs-group .tab-button.is-active {
    background: rgba(234, 179, 8, 0.14);
    border-color: rgba(234, 179, 8, 0.35);
    color: #fef08a;
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.1);
}

.panel-content {
    display: grid;
    gap: 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: grid;
    gap: 20px;
}

/* SİSTEM CANLI UYARI ŞERİDİ */
.system-alert {
    padding: 18px 22px;
    font-weight: 800;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.system-alert.alert-urgent {
    border-color: rgba(239, 68, 68, 0.32);
    color: #fecaca;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.18), rgba(30, 41, 59, 0.9));
}

.system-alert.alert-info {
    border-color: rgba(59, 130, 246, 0.32);
    color: #bfdbfe;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(30, 41, 59, 0.9));
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.panel-header h3 {
    margin-top: 8px;
    font-size: clamp(24px, 3.4vw, 34px);
    font-family: "Cinzel", serif;
}

/* ==========================================================================
   6. WHATSAPP STYLE BÜTÜNLEŞİK INBOX SİSTEMİ
   ========================================================================== */
.gmail-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 0; /* Arayı kapattık, boşluk yok */
    height: calc(100vh - 180px); /* Ekranın altını tamamen kaplaması için esnettik */
    min-height: 600px;
    align-items: stretch;
    
    /* İki ayrı kutu yerine WhatsApp gibi TEK BÜYÜK ANA KUTU */
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    overflow: hidden; /* Kenarlardan taşmayı önler */
    box-shadow: var(--shadow);
}

/* SOL AKIŞ LİSTESİ (Kişiler Listesi) */
.gmail-sidebar {
    background: rgba(15, 23, 42, 0.4); /* Sol taraf hafif daha koyu, WP Web gibi */
    border: none;
    border-right: 1px solid var(--stroke); /* Sadece arayı bölen dikey bir çizgi */
    border-radius: 0; 
    overflow-y: auto;
    padding: 14px;
}

.master-list-stream {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.master-card {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.master-card:hover {
    background: rgba(30, 41, 59, 0.8);
}

.master-card.is-active {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    box-shadow: inset 4px 0 0 var(--gold);
}

.master-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.master-card-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.master-card-time {
    font-size: 11px;
    color: var(--text-soft);
}

.master-card-preview {
    font-size: 12px;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

/* SAĞ DETAY MERKEZİ (Mesaj İçeriği) */
.gmail-detail-view {
    background: transparent; /* Kendi rengi yok, ana kutunun rengini alır */
    border: none; /* Etrafındaki sinir bozucu kenarlıkları sildik */
    border-radius: 0;
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.detail-view-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.detail-header {
    border-bottom: 1px solid var(--stroke);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.detail-header h4 {
    font-size: 26px;
    margin: 0;
    font-family: "Cinzel", serif;
}

.detail-content {
    flex: 1;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.8;
}

.detail-content-row {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.detail-content-row strong {
    color: var(--gold-soft);
    display: inline-block;
    width: 180px;
}

.detail-message-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--stroke);
    padding: 18px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    color: var(--text-main);
    white-space: pre-wrap;
    line-height: 1.6;
}

/* ==========================================================================
   7. OPERASYONEL BİLEŞENLER (ARAÇ VE KAMPANYA CRUD MATRİSLERİ)
   ========================================================================== */
.fleet-grid, .campaign-grid {
    display: grid;
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    gap: 20px;
}

.column-card, .form-card, .list-card, .preview-card {
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    padding: 24px;
}

.column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.column-head h4 {
    font-family: "Cinzel", serif;
    font-size: 18px;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.field-control {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.88);
    color: var(--text-main);
    border-radius: 16px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-control:focus {
    border-color: rgba(234, 179, 8, 0.72);
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.12);
}

.upload-zone {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: 20px;
    border: 1px dashed rgba(234, 179, 8, 0.34);
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.upload-zone:hover,
.upload-zone:focus-visible,
.upload-zone.is-dragover {
    border-color: rgba(234, 179, 8, 0.78);
    background: rgba(30, 41, 59, 0.92);
    transform: translateY(-1px);
}

.upload-zone-copy {
    display: grid;
    gap: 4px;
}

.upload-zone-copy strong {
    color: var(--text-main);
    font-size: 14px;
}

.upload-zone-copy span,
.upload-status {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.upload-status.is-success {
    color: #86efac;
}

.upload-status.is-error {
    color: #fca5a5;
}

.upload-preview {
    margin-top: 10px;
}

.upload-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(234, 179, 8, 0.16);
}

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

.toolbar, .form-actions, .message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vehicle-list {
    display: grid;
    gap: 16px;
}

.vehicle-card {
    padding: 18px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.16);
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
}

.vehicle-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(234, 179, 8, 0.16);
}

.vehicle-card h4 {
    font-family: "Cinzel", serif;
    font-size: 20px;
}

.vehicle-meta, .mail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.vehicle-copy p {
    margin: 10px 0 0;
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 14px;
}

.vehicle-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.split-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.campaign-preview {
    padding: 28px;
    min-height: 100%;
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(234, 179, 8, 0.14), rgba(15, 23, 42, 0.94) 60%),
        rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(234, 179, 8, 0.16);
}

.campaign-preview h5 {
    margin: 18px 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    font-family: "Cinzel", serif;
}

.campaign-preview p {
    margin: 0 0 24px;
    color: #cbd5e1;
    line-height: 1.8;
}

.campaign-countdown {
    margin: 0 0 18px !important;
    color: #fde68a !important;
    font-weight: 800;
}

.preview-image {
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    border-radius: 22px;
    border: 1px solid rgba(234, 179, 8, 0.16);
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.18);
}

.empty-state {
    padding: 40px;
    text-align: center;
    border-radius: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    color: var(--text-soft);
    margin: auto;
}

/* ==========================================================================
   8. BUTON VE ETİKET MODÜLLERİ (UI REUSABLES)
   ========================================================================== */
.btn {
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover, .icon-action:hover {
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, #fde047 0%, #eab308 60%, #ca8a04 100%);
    color: #020617;
    box-shadow: 0 12px 24px rgba(234, 179, 8, 0.18);
}

.btn-light { background: #f8fafc; color: #020617; }
.btn-block { width: 100%; }

.btn-ghost, .icon-action {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--stroke);
    color: var(--text-main);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.24);
    color: #fecaca;
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.24);
    color: #bfdbfe;
}

.btn-success {
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.24);
    color: #bbf7d0;
}

.badge, .preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(234, 179, 8, 0.28);
    background: rgba(234, 179, 8, 0.12);
    color: var(--gold-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.pill-urgent { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.24); color: #fecaca; }
.pill-info { background: rgba(59, 130, 246, 0.14); border-color: rgba(59, 130, 246, 0.24); color: #bfdbfe; }
.pill-new { background: rgba(234, 179, 8, 0.14); border-color: rgba(234, 179, 8, 0.24); color: #fef08a; }
.pill-read, .pill-responded, .pill-called { background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.2); color: #e2e8f0; }

.site-footer {
    width: min(100% - 32px, 1280px);
    margin: 0 auto 16px;
    padding: 22px;
    text-align: center;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

/* ==========================================================================
   9. ANLIK FLAŞÖR SİSTEMLERİ VE PULSE ANİMASYONLARI (KORUMA KALKANI)
   ========================================================================== */
.alarm-kirmizi {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.24), 0 0 32px rgba(239, 68, 68, 0.12);
    animation: redPulse 1.2s infinite ease-in-out;
}

.bilgi-mavi {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.24), 0 0 30px rgba(59, 130, 246, 0.12);
    animation: bluePulse 1.9s infinite ease-in-out;
}

.extreme-warning-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: inset 0 0 0 12px rgba(239, 68, 68, 0.85);
    animation: extremeBorderPulse 1s infinite alternate ease-in-out;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.extreme-warning-text {
    background: #ef4444;
    color: white;
    font-weight: 900;
    padding: 12px 40px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
}

.urgent-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    margin-left: 8px;
    animation: extremeBorderPulse 0.8s infinite alternate ease-in-out;
}

@keyframes redPulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.22), 0 0 24px rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.45), 0 0 44px rgba(239, 68, 68, 0.38);
        border-color: rgba(239, 68, 68, 0.8);
    }
}

@keyframes bluePulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.08);
        border-color: rgba(59, 130, 246, 0.25);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.38), 0 0 36px rgba(59, 130, 246, 0.24);
        border-color: rgba(59, 130, 246, 0.6);
    }
}

@keyframes extremeBorderPulse {
    from {
        box-shadow: inset 0 0 0 8px rgba(239, 68, 68, 0.85);
        background-color: rgba(239, 68, 68, 0.02);
    }
    to {
        box-shadow: inset 0 0 0 24px rgba(239, 68, 68, 0.35);
        background-color: rgba(239, 68, 68, 0.07);
    }
}

/* ==========================================================================
   10. MEDIA QUERIES (MOBİL VE TABLET UYUMLULUĞU)
   ========================================================================== */
@media (max-width: 1100px) {
    .hero-panel, .fleet-grid, .campaign-grid {
        grid-template-columns: 1fr;
    }
    .gmail-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .gmail-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--stroke);
        height: 320px;
    }
}

@media (max-width: 840px) {
    .header-shell, .panel-header, .detail-header-top, .vehicle-card-top, .top-horizontal-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .top-horizontal-nav {
        border-radius: 24px;
        padding: 20px;
    }
    .nav-tabs-group {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .nav-tabs-group .tab-button {
        width: 100%;
    }
    .header-nav {
        display: none;
    }
    .vehicle-card {
        grid-template-columns: 1fr;
    }
    .split-row {
        grid-template-columns: 1fr;
    }
    .upload-zone {
        grid-template-columns: 1fr;
    }
    .dashboard-main, .site-footer, .header-shell {
        width: min(100% - 20px, 1280px);
    }
    .column-card, .form-card, .list-card, .preview-card, .hero-panel {
        padding: 20px;
    }
    .login-card {
        padding: 28px;
    }
    .detail-content-row strong {
        width: 100%;
        margin-bottom: 4px;
    }
    .panel-header h3 {
        font-size: clamp(18px, 8vw, 28px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }
    .gmail-detail-view {
        padding: 20px;
    }
    .detail-header h4 {
        font-size: 22px;
        line-height: 1.2;
    }
    .inbox-filter-tabs {
        border-radius: 24px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .inbox-tab {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
        padding: 12px 10px;
    }
}

/* ==========================================================================
   YENİ INBOX FİLTRE TABLARI (MOCKUP TASARIMI)
   ========================================================================== */
.inbox-filter-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 100px;
    padding: 6px;
    margin-bottom: 16px;
    border: 1px solid var(--stroke);
}

.inbox-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inbox-tab:hover {
    color: var(--text-main);
}

.inbox-tab.is-active {
    background: rgba(30, 41, 59, 0.9);
    color: var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   REZERVASYON YONETIMI VE MOBIL APP GORUNUMU OVERRIDE
   ========================================================================== */
:root {
    --app-bg: #f4f7fb;
    --app-surface: #ffffff;
    --app-surface-muted: #f8fafd;
    --app-primary: #091a33;
    --app-primary-soft: #12315b;
    --app-accent: #ffb224;
    --app-accent-strong: #ff8a1f;
    --app-text: #10203a;
    --app-muted: #6c7891;
    --app-subtle: #8a94aa;
    --app-border: #e4eaf3;
    --app-success: #1f9d63;
    --app-danger: #d94b4b;
    --app-info: #2f80ed;
    --app-shadow: 0 18px 50px rgba(13, 27, 42, 0.08);
}

body.admin-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 178, 36, 0.16), transparent 26%),
        linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
    color: var(--app-text);
}

.admin-body::before {
    display: none;
}

.site-header {
    background: rgba(244, 247, 251, 0.86);
    backdrop-filter: blur(18px);
}

.header-shell,
.top-horizontal-nav,
.column-card,
.form-card,
.list-card,
.preview-card,
.gmail-sidebar,
.gmail-detail-view,
.reservation-requests,
.reservation-table-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
}

.header-shell,
.dashboard-main,
.site-footer {
    width: min(100% - 32px, 1400px);
}

.brand-mark,
.nav-brand-title,
.panel-header h3,
.column-head h4,
.mail-card h4,
.vehicle-card h4,
.reservation-table td {
    color: var(--app-primary);
}

.header-nav,
.icon-action,
.eyebrow,
.mail-meta span,
.vehicle-meta span,
.column-head span {
    color: var(--app-muted);
}

.hero-panel {
    background: var(--app-primary);
    color: var(--app-surface);
    border: 0;
    box-shadow: var(--app-shadow);
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.72);
}

.stat-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    color: var(--app-text);
    box-shadow: none;
}

.stat-card strong {
    color: var(--app-primary);
}

.stat-card span,
.stat-card small {
    color: var(--app-muted);
}

.top-horizontal-nav {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 28px;
}

.nav-tabs-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.tab-button,
.inbox-tab,
.filter-chip {
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--app-muted);
    font-weight: 800;
}

.tab-button.is-active,
.inbox-tab.is-active {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: var(--app-surface);
    box-shadow: none;
}

.btn {
    border-radius: 14px;
}

.btn-gold {
    background: var(--app-primary);
    color: var(--app-surface);
    box-shadow: 0 12px 24px rgba(9, 26, 51, 0.14);
}

.btn-secondary,
.btn-ghost,
.icon-action {
    background: var(--app-surface-muted);
    border: 1px solid var(--app-border);
    color: var(--app-primary-soft);
}

.btn-danger {
    background: #fff0f0;
    border: 1px solid #ffd5d5;
    color: var(--app-danger);
}

.field-control,
.login-form input,
.form-row textarea {
    background: var(--app-surface-muted);
    border: 1px solid var(--app-border);
    color: var(--app-text);
}

.field-control:focus,
.login-form input:focus,
.form-row textarea:focus {
    background: var(--app-surface);
    border-color: var(--app-primary-soft);
    box-shadow: 0 0 0 4px rgba(9, 26, 51, 0.08);
}

.campaign-grid {
    align-items: start;
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
}

.campaign-list-card {
    grid-column: 1 / -1;
}

.campaign-preview {
    display: grid;
    gap: 14px;
    min-height: 0;
    padding: 22px;
    overflow: hidden;
    background: var(--app-primary);
    color: var(--app-surface);
    border: 0;
}

.campaign-preview h5 {
    margin: 0;
    color: var(--app-surface);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.campaign-preview p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.campaign-countdown {
    color: #ffd18a !important;
}

.preview-image {
    height: clamp(190px, 30vw, 320px);
    border-color: rgba(255, 255, 255, 0.16);
}

.mail-card,
.vehicle-card,
.master-list-item,
.reservation-mini-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    box-shadow: none;
}

.mail-body,
.vehicle-copy p {
    color: var(--app-muted);
}

.upload-zone {
    background: #fff3e0;
    border: 1px dashed #ffd18a;
    color: var(--app-primary);
}

.upload-zone-copy span,
.upload-status {
    color: var(--app-muted);
}

.empty-state {
    background: var(--app-surface-muted);
    border-color: var(--app-border);
    color: var(--app-muted);
}

.alarm-kirmizi {
    background: #fffafa;
    border-color: #ffd5d5;
    box-shadow: 0 0 0 1px rgba(217, 75, 75, 0.12);
}

.bilgi-mavi {
    background: #fbfdff;
    border-color: #d7e6fb;
    box-shadow: 0 0 0 1px rgba(47, 128, 237, 0.1);
}

.reservation-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    padding: 9px 14px;
    cursor: pointer;
    border-color: var(--app-border);
    background: var(--app-surface);
    font-size: 13px;
}

.filter-chip.is-active {
    background: #fff3e0;
    border-color: #ffd18a;
    color: var(--app-accent-strong);
}

.reservation-dashboard {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
}

.reservation-requests,
.reservation-table-card {
    padding: 22px;
    border-radius: 28px;
}

.reservation-stack {
    display: grid;
    gap: 14px;
}

.reservation-mini-card {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 20px;
    background: var(--app-surface-muted);
}

.reservation-mini-card span {
    color: var(--app-subtle);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.reservation-mini-card strong {
    color: var(--app-text);
    font-size: 17px;
}

.reservation-mini-card small {
    color: var(--app-muted);
    font-weight: 700;
}

.reservation-mini-card em {
    width: fit-content;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3e0;
    color: var(--app-accent-strong);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.reservation-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.reservation-table th,
.reservation-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--app-border);
    text-align: left;
    white-space: nowrap;
}

.reservation-table th {
    color: var(--app-subtle);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.reservation-table td {
    font-size: 14px;
    font-weight: 700;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
}

.status-dot.success {
    background: var(--app-success);
}

.status-dot.info {
    background: var(--app-info);
}

.status-dot.warning {
    background: var(--app-accent);
}

.status-dot.danger {
    background: var(--app-danger);
}

.table-actions {
    color: var(--app-primary-soft) !important;
}

@media (max-width: 1100px) {
    .campaign-grid,
    .reservation-dashboard {
        grid-template-columns: 1fr;
    }

    .top-horizontal-nav {
        grid-template-columns: 1fr;
    }

    .nav-tabs-group {
        justify-content: flex-start;
    }
}

@media (max-width: 840px) {
    .dashboard-main,
    .site-footer,
    .header-shell {
        width: min(100% - 20px, 1400px);
    }

    .nav-tabs-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }
}
