/* [25 Eylül 2025] - TaksinYolda V2.0 Yönetici Paneli Standart Stil Dosyası (Kompakt Sürüm) */
:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #495057;
    --text-light: #555;
    --border-color: #dee2e6;
    --header-height: 70px;
}

/* --- GENEL VE HATA DÜZELTMELERİ --- */
html {
    overflow-y: scroll; /* Sayfa geçişlerindeki kayma sorununu çözer */
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-color);
    margin: 0;
    color: var(--text-color);
    padding-top: var(--header-height); /* Sabit header için boşluk */
}
* {
    box-sizing: border-box;
}

/* --- HEADER, LOGO VE MENÜ STİLLERİ --- */
header {
    background-color: #ffffff;
    padding: 0 30px;
    height: var(--header-height);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
nav .logo {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5em;
}
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--dark-color);
    border: none;
    background: none;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
nav ul li {
    margin-left: 15px;
}
nav ul li.welcome-text {
    font-style: italic;
    color: var(--text-light);
    margin-right: 10px;
    cursor: default;
}
nav ul li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}
nav ul li a:hover,
nav ul li a.active {
    background-color: var(--border-color);
    color: var(--primary-color);
}
nav ul li a i {
    margin-right: 8px; /* İkon ile yazı arasına boşluk */
}


/* --- ANA İÇERİK --- */
.main-content {
    padding: 30px;
    max-width: 1400px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}
.form-title {
    margin-top: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}
.messages .message-error, .messages .message-success {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.messages .message-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.messages .message-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }


/* --- FORM ELEMENTLERİ --- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    background-color: #fdfdfd;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 25px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}
.form-group label {
    font-weight: 500;
    font-size: 0.9em;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
}

/* --- BUTONLAR (DÜZENLENDİ) --- */
.btn {
    padding: 8px 12px; /* Daha kompakt butonlar */
    font-size: 0.85em; /* Yazıyı biraz küçülttük */
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap; /* Butonların alt satıra kaymasını engeller */
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-success { background-color: var(--success-color); color: white; }
.btn-danger { background-color: var(--danger-color); color: white; }
.btn-warning { background-color: var(--warning-color); color: var(--dark-color); }
.btn-secondary { background-color: #6c757d; color: white; }


/* --- TABLO STİLLERİ (DÜZENLENDİ) --- */
.table-wrapper {
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 12px 15px; /* Dikey boşluğu azalttık */
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}
.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.table tbody tr:hover {
    background-color: #f1f3f5;
}


/* --- MODAL (POPUP) --- */
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 30px; border: 1px solid #888; width: 90%; max-width: 500px; border-radius: 8px; animation: fadeIn 0.3s; }
@keyframes fadeIn { from {opacity: 0; transform: translateY(-20px);} to {opacity: 1; transform: translateY(0);} }
.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; }
.close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; }


/* --- MOBİL UYUMLULUK --- */
@media (max-width: 992px) {
    nav { flex-wrap: wrap; }
    .menu-toggle { display: block; }
    nav ul {
        flex-direction: column;
        width: 100%;
        display: none;
        margin-top: 15px;
        background-color: white;
        position: absolute;
        top: var(--header-height);
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    nav ul.active { display: flex; }
    nav ul li { margin: 0; width: 100%; text-align: center; border-top: 1px solid var(--border-color); }
    nav ul li a { justify-content: center; padding: 15px; }
}
/* yonetici/assets/css/admin_style.css */

/* ... mevcut stilleriniz ... */

/* EKLENEN YENİ STİLLER */
/* Styled Form (Profil, Ayarlar, Sürücü Düzenle vb. için) */
.styled-form { max-width: 800px; margin: auto; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.form-section { background: #fdfdfd; border: 1px solid #eee; padding: 20px; border-radius: 8px; margin-bottom: 25px; }
.form-section-title { font-size: 1.2em; color: #007bff; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-top: 0; margin-bottom: 20px;}

/* Sürücü Listesi - Bakiye Renkleri */
.bakiye-borc { color: #dc3545; font-weight: bold; }
.bakiye-alacak { color: #28a745; font-weight: bold; }

/* Badge (Durum Etiketleri) */
.badge { padding: .25em .6em; font-size: 75%; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .375rem; color: #fff; }
.badge-success { background-color: #28a745; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-secondary { background-color: #6c757d; }
.badge-info { background-color: #17a2b8; }
.badge-danger { background-color: #dc3545; }

/* Evrak Galerisi */
.file-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding: 10px; border: 1px dashed #ccc; border-radius: 5px; min-height: 60px; }
.file-item { position: relative; width: 60px; height: 60px; border: 1px solid #ddd; display: flex; justify-content: center; align-items: center; background: #f8f9fa; }
.file-item a { text-decoration: none; color: #495057; }
.file-item .delete-btn { position: absolute; top: -5px; right: -5px; background: #dc3545; color: white; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; line-height: 20px; text-align: center; cursor: pointer; }

/* Profil Sayfası */
.profile-forms { display: flex; gap: 30px; }
.profile-forms > div { flex: 1; }
.profile-divider { flex: 0 0 150px; text-align: center; }
.profile-divider img { max-width: 100%; height: auto; }
@media (max-width: 768px) { .profile-forms { flex-direction: column; } }

/* Ayarlar ve Log Sayfası için temel stiller (header/footer'a dahil edildiğinde kullanılır) */
.container { max-width: 900px; margin: auto; padding: 20px; }
/* === Modal Pencere Stilleri (Yeni Eklendi) === */

/* Arka planı karartan katman */
.modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed; /* Sayfayı kaplaması için */
    z-index: 2000; /* Diğer her şeyin üzerinde olması için */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Gerekirse kaydırma çubuğu */
    background-color: rgba(0,0,0,0.6); /* Yarı saydam siyah arka plan */
    animation: fadeIn 0.3s;
}

/* Modalın görünür hali için animasyon */
@keyframes fadeIn {
    from {background-color: rgba(0,0,0,0);}
    to {background-color: rgba(0,0,0,0.6);}
}

/* Modalın görünür hali */
.modal.active {
    display: flex; /* Görünür yap ve içeriği ortala */
    align-items: center;
    justify-content: center;
}

/* Modalın içerik kutusu */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 25px 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px; /* Maksimum genişlik */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Kapatma butonu (X) */
.modal-content .close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: black;
    cursor: pointer;
}

/* Form içindeki checkbox'ların hizalanması için */
.checkbox-group {
    display: flex;
    align-items: center;
}
.checkbox-group label {
    margin-bottom: 0 !important;
}
/* === AÇILIR MENÜ (DROPDOWN) STİLLERİ === */

/* Ana dropdown butonu */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Açılır menü içeriği (Başlangıçta gizli) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden; /* Köşeleri yuvarlak tutmak için */
}

/* Açılır menüdeki linkler */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9em; /* Biraz daha küçük font */
}

/* Linklerin üzerine gelince renk değişimi */
.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

/* Ana menü elemanının üzerine gelince alt menüyü göster */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobil için özel ayarlar */
@media (max-width: 768px) {
    .dropdown-content {
        position: static; /* Mobil'de alt alta normal menü gibi görünsün */
        box-shadow: none;
        background-color: transparent;
    }
    .dropdown-content a {
        padding-left: 40px; /* İçeriden başlasın */
    }
}