:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --dark: #0f172a;
    --muted: #64748b;
    --bg: #f1f5f9;
    --card: #ffffff;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 100%);
    color: var(--dark);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

.site-wrapper {
    min-height: 100vh;
}

.topbar {
    padding: 20px 0 10px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.brand-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.site-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.main-area {
    padding-top: 14px;
    padding-bottom: 40px;
}

.hero-card,
.map-card,
.details-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    padding: 24px;
    margin-bottom: 22px;
}

.form-label {
    font-weight: 700;
    color: #334155;
    font-size: 15px;
}

.form-control {
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    padding: 14px 16px;
    font-size: 18px;
    min-height: 56px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
    border-color: #86b7fe;
}

.action-btn {
    border-radius: 16px;
    font-weight: 700;
    min-height: 56px;
    font-size: 18px;
}

.info-note {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
}

.route-top-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.quick-btn {
    border-radius: 14px;
    min-height: 48px;
    padding: 10px 18px;
    font-weight: 700;
}

.stats-area {
    margin-bottom: 22px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    flex-shrink: 0;
}

.radar-card .stat-icon {
    background: #eff6ff;
}

.kontrol-card .stat-icon {
    background: #eef2ff;
}

.hiz-card .stat-icon {
    background: #f0fdf4;
}

.stat-title {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.map-header,
.details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.map-header h2,
.details-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.durum-mesaji {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
}

#map {
    width: 100%;
    height: 520px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #dbeafe;
}

.rota-bilgisi {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    color: #334155;
    font-size: 15px;
}

.custom-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
}

.custom-table td,
.custom-table th {
    padding: 14px 12px;
}

.footer-area {
    padding: 0 0 32px;
}

.footer-box {
    text-align: center;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.fullscreen-map-modal {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.fullscreen-map-modal.active {
    display: flex;
}

.fullscreen-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}

.fullscreen-title {
    font-weight: 700;
    font-size: 18px;
}

.fullscreen-close {
    border: none;
    background: #ef4444;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
}

#fullscreenMap {
    flex: 1;
    width: 100%;
}

@media (max-width: 991px) {
    .site-title {
        font-size: 24px;
    }

    .site-subtitle {
        font-size: 14px;
    }

    #map {
        height: 430px;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding-top: 14px;
    }

    .brand-wrap {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
        border-radius: 18px;
    }

    .brand-badge {
        width: 54px;
        height: 54px;
        font-size: 24px;
        border-radius: 14px;
    }

    .site-title {
        font-size: 21px;
    }

    .main-area {
        padding-top: 10px;
        padding-bottom: 24px;
    }

    .hero-card,
    .map-card,
    .details-card {
        padding: 16px;
        border-radius: 18px;
        margin-bottom: 16px;
    }

    .form-control {
        min-height: 54px;
        font-size: 18px;
    }

    .action-btn {
        min-height: 54px;
        font-size: 18px;
    }

    .quick-btn {
        width: 100%;
        min-height: 50px;
        font-size: 16px;
    }

    .route-top-actions {
        flex-direction: column;
    }

    .stat-card {
        border-radius: 18px;
        padding: 16px;
        gap: 12px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        border-radius: 14px;
    }

    .stat-title {
        font-size: 13px;
    }

    .stat-value {
        font-size: 28px;
    }

    .map-header h2,
    .details-header h3 {
        font-size: 19px;
    }

    .durum-mesaji {
        font-size: 12px;
        padding: 7px 12px;
    }

    #map {
        height: 360px;
        border-radius: 14px;
    }

    .rota-bilgisi {
        font-size: 14px;
        padding: 12px 14px;
    }

    .custom-table td,
    .custom-table th {
        padding: 10px 8px;
        font-size: 14px;
    }

    .footer-box {
        padding: 14px;
        border-radius: 16px;
    }
}
.secim-kutu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.secim-baslik {
    font-size: 22px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-select {
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    padding: 14px 16px;
    min-height: 56px;
    font-size: 18px;
}

.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
    border-color: #86b7fe;
}

@media (max-width: 768px) {
    .secim-kutu {
        padding: 16px;
        border-radius: 18px;
    }

    .secim-baslik {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .form-select {
        min-height: 54px;
        font-size: 17px;
    }
}