body { font-family: 'Segoe UI', sans-serif; background-color: #f4f6f9; overflow-x: hidden; }

/* SIDEBAR GENEL AYARLAR */
.sidebar { 
    height: 100vh; background-color: #2c3e50; color: #ecf0f1; position: fixed; top: 0; left: 0; width: 250px; padding-top: 10px; z-index: 1050; 
    overflow-y: auto; transition: width 0.3s ease; overflow-x: hidden; 
}
.sidebar a { 
    cursor: pointer; padding: 12px 20px; color: #bdc3c7; display: flex; align-items: center; text-decoration: none; border-bottom: 1px solid #34495e; transition: 0.3s; white-space: nowrap; 
}
.sidebar a i { min-width: 30px; font-size: 1.1rem; text-align: center; }
.sidebar a span { margin-left: 10px; transition: opacity 0.3s ease; }
.sidebar a:hover, .sidebar a.active { background-color: #34495e; color: #fff; border-left: 5px solid #3498db; }

/* MAIN CONTENT AYARLARI */
.main-content { margin-left: 250px; padding: 20px; width: calc(100% - 250px); position: relative; transition: margin-left 0.3s ease, width 0.3s ease; }

/* --- DARALTILMIŞ (COLLAPSED) MOD STİLLERİ --- */
body.sidebar-collapsed .sidebar { width: 70px; }
body.sidebar-collapsed .main-content { margin-left: 70px; width: calc(100% - 70px); }
body.sidebar-collapsed .sidebar a span { opacity: 0; display: none; }
body.sidebar-collapsed .sidebar a { padding: 15px 10px; justify-content: center; }
body.sidebar-collapsed .sidebar a i { margin: 0; font-size: 1.3rem; }

.sidebar-header { text-align: center; padding: 10px; margin-bottom: 10px; border-bottom: 1px solid #34495e; display: flex; align-items: center; justify-content: space-between; }
.logo-text { font-size: 1.2rem; font-weight: bold; transition: 0.3s; }
.logo-icon { display: none; font-size: 1.5rem; font-weight: bold; color: #3498db; margin: 0 auto; }

body.sidebar-collapsed .logo-text { display: none; }
body.sidebar-collapsed .logo-icon { display: block; }
body.sidebar-collapsed .toggle-btn { margin: 0 auto; }

.toggle-btn { background: none; border: none; color: #bdc3c7; font-size: 1.2rem; cursor: pointer; }
.toggle-btn:hover { color: white; }

/* TABLO SIRALAMA VE FİLTRELEME STİLLERİ */
th.sortable { cursor: pointer; position: relative; padding-right: 20px; user-select: none; }
th.sortable:hover { background-color: #444 !important; color: #fff; }
th.sortable::after { content: '\21F5'; position: absolute; right: 5px; opacity: 0.3; font-size: 0.8em; }
th.asc::after { content: '\2191'; opacity: 1; color: #4cd137; }
th.desc::after { content: '\2193'; opacity: 1; color: #e84118; }

.filter-row th { background-color: #f1f2f6 !important; padding: 5px !important; }
.filter-select { width: 100%; font-size: 0.85rem; padding: 2px; border: 1px solid #ced4da; border-radius: 3px; }

/* Diğer Sayfa Stilleri */
.sayfa-bolumu { display: none; }
.sayfa-bolumu.aktif-sayfa { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.alert-row-red { background-color: #f8d7da !important; color: #721c24; }
.alert-row-yellow { background-color: #fff3cd !important; color: #856404; }
.badge-kullanimda { background-color: #198754; color: white; }
.badge-serviste { background-color: #ffc107; color: black; }
.badge-bosta { background-color: #6c757d; color: white; }
.badge-iade { background-color: #0dcaf0; color: white; }
.card-counter { padding: 15px; border-radius: 5px; color: #fff; margin-bottom: 20px; text-align: center;}
.bg-primary-dark { background-color: #007bff; }
.bg-danger-dark { background-color: #dc3545; }
.bg-success-dark { background-color: #198754; }
.bg-warning-dark { background-color: #ffc107; color: black; }
.card { margin-bottom: 20px; border: none; box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075); }
.card-header { background-color: #fff; border-bottom: 1px solid #eee; font-weight: 600; }
.clickable-row { cursor: pointer; transition: background-color 0.2s; }
.clickable-row:hover { background-color: #e9ecef !important; }
.container-sade { overflow-x: hidden; }
.tablo-sade { table-layout: fixed; width: 100%; font-size: 13px; }
.tablo-sade th, .tablo-sade td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px; }
.container-tam { overflow-x: auto; }
.tablo-tam { table-layout: auto; width: max-content; min-width: 100%; font-size: 12px; }
.tablo-tam th, .tablo-tam td { white-space: nowrap; padding: 5px; }
/* --- FİLTRE PANELİ (Zorunlu) --- */
.filter-panel {
    position: fixed;
    top: 0;
    left: -320px; /* Ekran dışı */
    width: 300px;
    height: 100vh;
    background-color: #34495e;
    color: #fff;
    z-index: 2000; /* En üstte olmalı */
    transition: left 0.3s ease;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

/* Javascript bu sınıfı ekleyince panel içeri kayar */
.filter-panel.open {
    left: 0; 
}

.filter-header { padding: 15px; background: #2c3e50; border-bottom: 1px solid #4b6584; display: flex; justify-content: space-between; align-items: center; }
.filter-body { flex: 1; overflow-y: auto; padding: 15px; }
.filter-footer { padding: 15px; background: #2c3e50; border-top: 1px solid #4b6584; }
.filter-group { margin-bottom: 15px; border-bottom: 1px solid #4b6584; padding-bottom: 10px; }
.filter-group h6 { cursor: pointer; color: #00d2d3; display: flex; justify-content: space-between; }
.filter-options { padding-left: 5px; }