/* --- DEĞİŞKENLER VE RENK PALETİ --- */
:root {
    --bg-main: #1e2124;         /* Mat Koyu Gri Arka Plan */
    --bg-card: #2f3136;         /* Kartların Arka Planı */
    --sidebar-bg: #111214;      /* Sol Menü Arka Planı */
    --text-main: #dcddde;       /* Ana Beyaz/Gri Metin */
    --text-muted: #b9bbbe;      /* Daha Sönük Gri Metin */
    --accent: #5865f2;          /* Modern Mavi (Discord Mavisi Tonu) */
    --success: #43b581;         /* Olumlu/Gelir Yeşili */
    --danger: #f04747;          /* Olumsuz/Gider Kırmızısı */
    --border: #3e4147;          /* Çizgi ve Sınır Renkleri */
    --input-bg: #202225;        /* Input İç Renkleri */
}

/* --- GENEL AYARLAR --- */
* {
    box-sizing: border-box;
    transition: all 0.2s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* --- SOL MENÜ (SIDEBAR) --- */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.logo h2 {
    color: white;
    font-size: 22px;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

nav { flex-grow: 1; }

.nav-btn {
    width: 100%;
    padding: 14px 18px;
    margin: 8px 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn i { width: 20px; text-align: center; }

.nav-btn:hover, .nav-btn.active {
    background-color: var(--accent);
    color: white;
}

/* --- ANA İÇERİK (MAIN CONTENT) --- */
.main-content {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

header h1 { font-size: 24px; font-weight: 500; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- KARTLAR VE FORMLAR --- */
.card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.card h3 { margin-top: 0; margin-bottom: 20px; color: white; font-size: 18px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: end;
}

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

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

input, select {
    background-color: var(--input-bg);
    border: 1px solid var(--border);
    color: white;
    padding: 12px;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
}

input:focus { border-color: var(--accent); }

/* --- BUTONLAR --- */
.save-btn {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 13px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.save-btn:hover { filter: brightness(1.1); }

/* --- RAPOR TABLOSU --- */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

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

.report-table th {
    background-color: var(--sidebar-bg);
    color: var(--text-muted);
    padding: 15px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
}

.report-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.badge-income { color: var(--success); font-weight: bold; }
.badge-expense { color: var(--danger); font-weight: bold; }

/* --- WHATSAPP MODÜLÜ --- */
.wp-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.wp-link {
    text-decoration: none;
    background: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-link:hover { transform: scale(1.05); }

/* --- ÖZET KARTLARI --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stat-card h3 { color: var(--text-muted); font-size: 14px; margin: 0; }
.stat-card p { font-size: 24px; font-weight: bold; margin: 10px 0 0 0; color: white; }
.stat-card small { color: var(--text-muted); font-size: 11px; }

.nav-btn i { width: 20px; margin-right: 10px; }
.filter-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #202225;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.filter-bar input[type="date"] {
    background: #2f3136;
    border: 1px solid #4f545c;
    color: white;
    padding: 5px;
    border-radius: 4px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card h3 { color: var(--text-muted); font-size: 14px; margin: 0; }
.stat-card p { font-size: 28px; font-weight: bold; margin: 10px 0 0 0; color: white; }