/* Temel Sıfırlamalar ve Yazı Tipi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    overflow: hidden;
}

/* Ana Kapsayıcı */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* SOL MENÜ (SIDEBAR) STİLLERİ */
.sidebar {
    width: 260px;
    background-color: #1e293b;
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #334155;
}

.sidebar-brand i {
    font-size: 26px;
    color: #38bdf8; /* Teknoloji çipi ikonu için şık mavi */
}

.sidebar-brand h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* MARKA ALT YAZISI (YENİ EKLENDİ) */
.brand-sub {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-top: 1px;
    font-weight: 500;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.menu-item:hover, .menu-item.active {
    color: #fff;
    background-color: #334155;
    border-left: 4px solid #38bdf8;
}

/* SAĞ TARAF SARMALAYICI */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: calc(100% - 260px);
}

/* ÜST BAR (HEADER) STİLLERİ */
.main-header {
    height: 70px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    padding: 8px 16px;
    border-radius: 8px;
    gap: 10px;
    width: 300px;
}

.search-box i {
    color: #94a3b8;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: #64748b;
}

.notification-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #64748b;
}

.profile-avatar {
    font-size: 32px;
    color: #64748b;
}

/* ANA İÇERİK ALANI */
.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #f8fafc;
}

/* İSTATİSTİK KARTLARI STİLLERİ */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-total { background-color: #e0f2fe; color: #0284c7; }
.icon-active { background-color: #dcfce7; color: #16a34a; }
.icon-stopped { background-color: #f1f5f9; color: #475569; }
.icon-warning { background-color: #fee2e2; color: #dc2626; }

.stat-details h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.stat-details p {
    font-size: 14px;
    color: #64748b;
    margin-top: 2px;
}

/* HARİTA ALANI STİLLERİ */
.map-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

.section-title h2 i {
    color: #ef4444;
    margin-right: 6px;
}

.live-indicator {
    background-color: #f0fdf4;
    color: #16a34a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-indicator .dot {
    width: 8px;
    height: 8px;
    background-color: #16a34a;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

#map {
    height: 450px;
    width: 100%;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    z-index: 1;
}

.custom-map-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

/* ARAÇ LİSTESİ TABLO STİLLERİ */
.vehicle-list-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.view-all-btn {
    font-size: 14px;
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

.view-all-btn:hover {
    text-decoration: underline;
}

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

.vehicle-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.vehicle-table th {
    background-color: #f8fafc;
    color: #64748b;
    padding: 16px;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.vehicle-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.vehicle-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vehicle-info-cell i {
    font-size: 18px;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
}

.vehicle-info-cell .plate {
    display: block;
    font-weight: 600;
    color: #1e293b;
}

.vehicle-info-cell .model {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.speed { font-weight: 500; }
.speed-alert { color: #dc2626; font-weight: 700; }

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

.status-moving { background-color: #dcfce7; color: #15803d; }
.status-parked { background-color: #f1f5f9; color: #475569; }
.status-warning { background-color: #fee2e2; color: #b91c1c; }

.list-container-card .status-badge { background-color: #e0f2fe; color: #0369a1; }
.list-container-card tr:nth-child(even) .status-badge { background-color: #f1f5f9; color: #475569; }

.table-btn {
    background-color: #fff;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.table-btn:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

/* ==========================================================================
   GEÇMİŞ İZLEME PANELİ STİLLERİ
   ========================================================================== */
.playback-panel {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.playback-inputs {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.p-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.p-input-group input, .playback-select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    color: #334155;
    background-color: #fff;
}

.playback-select {
    min-width: 200px;
    cursor: pointer;
}

.playback-btn {
    background-color: #0284c7;
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.playback-btn:hover { background-color: #0369a1; }
.btn-secondary { background-color: #64748b; }
.btn-secondary:hover { background-color: #475569; }

.playback-slider-container {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    gap: 16px;
}

.time-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    min-width: 90px;
}

.modern-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #cbd5e1;
    outline: none;
}

.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0284c7;
    cursor: pointer;
    transition: transform 0.1s;
}

.modern-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ==========================================================================
   ARAÇLAR SAYFASI STİLLERİ
   ========================================================================== */
.page-title-section {
    margin-bottom: 24px;
}

.page-title-section h2 {
    font-size: 22px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 10px;
}

.araclar-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
}

.form-container-card, .list-container-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-container-card h3, .list-container-card h3 {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.form-group input, .form-group select {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background-color: #f8fafc;
    transition: border-color 0.2s;
    width: 100%;
}

.form-group input:focus, .form-group select:focus {
    border-color: #0284c7;
    background-color: #fff;
}

.form-submit-btn {
    background-color: #0284c7;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.form-submit-btn:hover {
    background-color: #0369a1;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.success { background-color: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.error { background-color: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
/* =========================================
   MOBİL UYARLAMA (RESPONSIVE TASARIM) - %25 KÜÇÜLTÜLMÜŞ ÖLÇEK
   ========================================= */

@media (max-width: 768px) {
    /* 1. Sayfanın Sağa Sola Kaymasını Engelle ve Genel Metinleri Küçült */
    html, body {
        overflow-x: hidden;
        width: 100%;
        font-size: 90%; 
    }

    /* 2. Ana Taşıyıcı ve İçerik Alanı Düzeni */
    .app-container {
        flex-direction: column;
    }
    
    .main-wrapper {
        margin-left: 0 !important;
        width: 100%;
        padding-bottom: 60px; /* Alt boşluk azaltıldı */
        box-sizing: border-box;
    }

    .content-area {
        padding: 10px; /* Kenar boşlukları azaltıldı */
        width: 100%;
        box-sizing: border-box;
    }

    /* 3. Sol Menüyü Alt Navigasyon Barına Çevirme (Küçültülmüş) */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 5px 0; /* Yükseklik tıraşlandı */
        background-color: #0f172a;
        z-index: 9999;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
        border-top: 1px solid #1e293b;
    }

    .sidebar-brand {
        display: none; 
    }

    .sidebar-menu {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px; /* İkon ve yazı arası mesafe daraldı */
        padding: 4px;
        font-size: 9px; /* Yazı fontu küçüldü */
        font-weight: 600;
        background: transparent !important;
        border-radius: 8px;
    }

    .menu-item.active {
        color: #38bdf8 !important;
    }

    .menu-item i {
        font-size: 16px; /* İkonlar küçüldü */
        margin-right: 0;
    }

    /* 4. Üst Bant (Header) ve Arama Kutusunu Ekrana Sığdır (Küçültülmüş) */
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        height: auto;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
        padding: 8px 12px; /* Arama kutusu inceltildi */
        font-size: 13px;
        box-sizing: border-box;
    }

    .user-profile {
        width: 100%;
        justify-content: space-between;
    }

    .user-profile .profile-avatar {
        font-size: 28px !important; /* Profil ikonu küçültüldü */
    }

    /* 5. Formlar, Tablolar ve İç Boşlukları Daralt (Tek Sütun) */
    .araclar-grid {
        display: flex;
        flex-direction: column; 
        gap: 15px; /* Kutular arası boşluk azaltıldı */
        width: 100%;
    }

    .form-container-card, .list-container-card, .notif-card {
        width: 100%;
        padding: 15px; /* Kartların iç boşlukları daraltıldı */
        box-sizing: border-box;
        overflow: hidden;
    }

    .form-container-card h3, .list-container-card h3 {
        font-size: 15px; /* Başlıklar küçüldü */
        margin-bottom: 12px;
    }

    /* Form elemanlarını sıkılaştır */
    .custom-form .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .custom-form .form-group input, .custom-form .form-group select {
        padding: 8px 10px; /* Form giriş alanları inceldi */
        font-size: 13px;
    }

    .form-submit-btn {
        padding: 10px;
        font-size: 13px;
    }

    /* Tablo metinlerini ve butonlarını küçült */
    .vehicle-table th, .vehicle-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .table-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    /* 6. Tablolar Ekrana Sığmazsa Sadece Kendi İçinde Kaydırılabilir Olsun */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* ========================================================= */
/* PANEL ORTAK VE ÖZEL SAYFA STİLLERİ (TEMİZLİK SONRASI)     */
/* ========================================================= */

/* MODAL (AÇILIR PENCERE) VE DROPDOWN STİLLERİ */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box { background: #fff; width: 100%; max-width: 500px; border-radius: 12px; padding: 24px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15); transform: translateY(-20px); transition: transform 0.3s ease; }
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
.modal-header h3 { font-size: 18px; color: #1e293b; font-weight: 700; margin: 0; }
.modal-close-btn { background: none; border: none; font-size: 20px; color: #64748b; cursor: pointer; }
.modal-footer-buttons { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.profile-dropdown-menu a:hover { background-color: #f8fafc; color: #0284c7 !important; }
.notification-icon .badge-red { position: absolute; top: -4px; right: -6px; background-color: #ef4444; color: white; border-radius: 50%; padding: 3px 6px; font-size: 10px; font-weight: 900; line-height: 1; border: 2px solid #ffffff; box-shadow: 0 0 10px rgba(239,68,68,0.5); }

/* BİLDİRİMLER SAYFASI STİLLERİ */
.notif-wrapper { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.notif-card { background-color: #fff; border-left: 5px solid #ef4444; border-radius: 8px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.notif-card.read { border-left-color: #cbd5e1; opacity: 0.7; }
.notif-card.type-speed_limit { border-left-color: #ef4444; }
.notif-card.type-evrak { border-left-color: #eab308; }
.notif-card.read.type-speed_limit, .notif-card.read.type-evrak { border-left-color: #cbd5e1; }
.notif-left { display: flex; align-items: center; gap: 16px; }
.notif-icon-box { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.notif-card.read .notif-icon-box { background-color: #f1f5f9 !important; color: #64748b !important; }
.notif-info-text h4 { font-size: 15px; color: #1e293b; font-weight: 600; margin: 0; }
.notif-info-text p { font-size: 13px; color: #475569; margin: 4px 0 0 0; }
.notif-time { font-size: 12px; color: #94a3b8; margin-top: 6px; display: block; }
.btn-read-action { background-color: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; padding: 8px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 13px; transition: all 0.2s; }
.btn-read-action:hover { background-color: #dcfce7; }
.all-read-btn { background-color: #1e293b; color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.all-read-btn:hover { background-color: #334155; }

/* HARİTA VE ANA EKRAN STİLLERİ (index.php) */
.map-wrapper-relative { position: relative; width: 100%; height: 550px; transition: all 0.3s ease; }
#map { width: 100%; height: 100%; border-radius: 12px; z-index: 1; }
.map-wrapper-relative.fullscreen-map { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; z-index: 99999 !important; border-radius: 0 !important; }
.map-wrapper-relative.fullscreen-map #map { border-radius: 0 !important; }
.custom-fullscreen-btn { position: absolute; top: 10px; right: 10px; z-index: 1000; background: #ffffff; border: 2px solid rgba(0,0,0,0.2); border-radius: 4px; width: 34px; height: 34px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #1e293b; box-shadow: 0 1px 5px rgba(0,0,0,0.4); transition: all 0.2s; }
.custom-fullscreen-btn:hover { background-color: #f4f4f4; color: #0284c7; }
.maintenance-dropdown-container { position: absolute; bottom: 20px; left: 20px; z-index: 1000; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.maintenance-btn { background-color: #1e293b; color: #ffffff; border: none; padding: 12px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s ease; }
.maintenance-btn:hover { background-color: #334155; }
.maintenance-btn i.arrow-icon { transition: transform 0.3s ease; }
.maintenance-btn.active i.arrow-icon { transform: rotate(180deg); }
.maintenance-content { position: absolute; bottom: 50px; left: 0; width: 340px; max-height: 250px; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); padding: 12px; display: none; overflow-y: auto; }
.maintenance-content.show { display: block; }
.maintenance-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.maintenance-item:last-child { border-bottom: none; }
.maintenance-item i { color: #475569; margin-top: 3px; background-color: #cbd5e1; padding: 6px; border-radius: 5px; }
.maintenance-item-info { display: flex; flex-direction: column; }
.maintenance-item-plate { font-weight: 700; color: #1e293b; font-size: 13px; }
.maintenance-item-detail { font-size: 12px; color: #475569; margin-top: 2px; line-height: 1.4; }
.no-maintenance-text { font-size: 13px; color: #64748b; text-align: center; padding: 10px 0; }

/* DİĞER KART VE BUTON DETAYLARI */
.account-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); max-width: 500px; margin-top: 20px; }
.header-action-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.add-violation-btn { background-color: #dc2626; color: white; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: background 0.2s; display: flex; align-items: center; gap: 8px; }
.add-violation-btn:hover { background-color: #b91c1c; }
.doc-date { font-size: 13px; font-weight: 600; color: #334155; display: block; margin-top: 4px; }
/* PROFESYONEL DOSYA YÜKLEME BUTONU */
.file-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}
.file-upload-btn:hover {
    background-color: #e2e8f0;
    color: #0284c7;
    border-color: #0284c7;
}
/* ========================================================= */
/* SAYFALARDAN AKTARILAN ÖZEL STİLLER (BİLDİRİMLER & SÜRÜCÜLER) */
/* ========================================================= */

/* Okunmamış Bildirim Özel Kırmızı Vurgusu (bildirimler.php) */
.notif-card.unread-highlight {
    border-left: 5px solid #dc2626 !important;
    background-color: #fffafaf5;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1);
}

/* Çoklu Seçim Kutusu (suruculer.php) */
.select-multiple {
    height: 100px;
    padding: 8px;
}
.select-multiple option {
    padding: 4px;
}
/* ========================================================= */
/* SADECE MOBİL GÖRÜNÜM (TELEFON EKRANLARI İÇİN)             */
/* ========================================================= */

@media (max-width: 768px) {
    /* Genel sayfa taşmasını engelle */
    html, body {
        overflow-x: hidden !important;
        width: 100vw;
        max-width: 100%;
    }

    .app-container {
        flex-direction: column;
    }

    /* Sol menüyü ekranın altına (Bottom Nav) sabitle */
    .sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 70px !important;
        flex-direction: row !important;
        padding: 0 !important;
        z-index: 9999 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
    }

    .sidebar-brand {
        display: none !important; /* Mobilde logoyu gizle */
    }

    .sidebar-menu {
        flex-direction: row !important;
        width: 100% !important;
        padding: 0 10px !important;
        margin: 0 !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 100% !important;
    }

    /* Alt menüdeki ikon ve yazıları kendi içinde ortala */
    .menu-item {
        display: flex !important;
        flex-direction: column !important;
        padding: 5px 0 !important;
        gap: 4px !important;
        font-size: 10px !important;
        border: none !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        flex: 1 !important;
    }

    .menu-item.active {
        background-color: transparent !important;
        color: #38bdf8 !important;
    }

    .menu-item i {
        font-size: 22px !important;
        margin: 0 !important;
        display: block !important;
    }

    /* Ana içerik alanını alt menünün altında kalmayacak şekilde ayarla */
    .main-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        padding-bottom: 80px !important;
    }

    .main-header {
        padding: 10px 15px !important;
        height: auto !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .search-box {
        width: 100% !important;
    }

    .user-profile {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .content-area {
        padding: 15px !important;
    }

    /* Yan yana duran Grid ve Flex yapılarını alt alta (Tek Sütun) diz */
    .araclar-grid, .stats-container, .header-action-row {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
    }

    /* Form elemanlarını tek sütun yap */
    .custom-form div[style*="display:flex"], .custom-form div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .form-container-card, .list-container-card, .map-section, .vehicle-list-section {
        padding: 15px !important;
    }

    /* Tabloların ekranı taşırmasını engelle (İçinde kaydırılabilir yap) */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .playback-inputs {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .p-input-group, .playback-select {
        width: 100% !important;
    }

    #map {
        height: 350px !important;
    }

    /* Modalların (Açılır pencerelerin) telefona tam sığmasını sağla */
    .modal-box {
        padding: 15px !important;
        width: 95% !important;
        margin: 10px auto !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
    
    .notif-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .notif-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
    }
}
@media (max-width: 768px) {
/* Tarih ve saat kutularının inatçı varsayılan genişliğini ezer */
    input[type="date"], 
    input[type="time"], 
    input[type="datetime-local"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; 
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        
        /* EKLENEN KISIM: Yüksekliği normal kutularla aynı standartlara getirir */
        padding: 10px 14px !important;
        min-height: 40px !important;
        font-family: inherit !important;
    }

    /* Formlardaki yan yana duran kutuların mobilde sorunsuz alt alta geçmesi için */
    div[style*="display:flex"], 
    div[style*="display: flex"] {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .form-group, .p-input-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}