/* --- GENEL AYARLAR & DEĞİŞKENLER --- */
:root {
    --primary-color: #3b82f6;    /* Modern Mavi */
    --secondary-color: #1e293b;  /* Koyu Lacivert (Sidebar) */
    --accent-color: #10b981;     /* Gelir/Başarı Yeşili */
    --danger-color: #e11d48;     /* Gider/Hata Kırmızısı */
    --bg-light: #f8fafc;         /* Arka Plan Gri */
    --text-main: #0f172a;        /* Ana Yazı */
    --text-muted: #64748b;       /* Yardımcı Yazı */
    --sidebar-width: 260px;
    --radius: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    overflow: hidden; /* Ana scroll sidebar ile bölünmesin */
}

/* --- LAYOUT (İSKELET) --- */
.admin-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* --- SIDEBAR (SOL MENÜ) --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.sidebar-brand {
    padding: 30px;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-brand span {
    color: var(--primary-color);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 5px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-link i {
    font-size: 18px;
}

/* --- MAIN CONTENT (SAĞ TARAF) --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-header {
    height: 70px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.content-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* --- KART TASARIMLARI (DASHBOARD) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

.stat-card .label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 800;
    margin: 8px 0;
    color: var(--text-main);
}

.stat-card.income .value { color: var(--accent-color); }
.stat-card.expense .value { color: var(--danger-color); }

/* --- TABLOLAR & LİSTELER --- */
.card-table {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.table-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th {
    text-align: left;
    padding: 12px;
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.custom-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

/* --- TUCSON ÖZEL ALANLARI --- */
.tucson-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 30px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.tucson-card::after {
    content: "🚗";
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 120px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    .sidebar-brand span, .nav-link span {
        display: none;
    }
    .sidebar-brand { padding: 20px 10px; font-size: 14px; }
    .content-body { padding: 15px; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* --- BUTONLAR --- */
.btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); }