:root {
    --primary-color: #00e676;
    --bg-gradient-1: #0f172a;
    --bg-gradient-2: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2));
    color: var(--text-main);
    min-height: 100vh;
    padding: 30px 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

header h1 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 40px;
    color: #e2e8f0;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

/* Grid Sistemleri */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; }

/* Glassmorphism Kart Tasarımı */
.glass {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.card h3 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.card .value {
    font-size: 1.8rem;
    font-weight: 600;
}

.card .text-small { font-size: 1.1rem; line-height: 1.4; }
.card .subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 5px; }
.positive { color: var(--primary-color); }

.highlight-green { border-left: 4px solid var(--primary-color); }
.highlight-red { border-left: 4px solid #ef4444; } /* Yüksek risk için kırmızı vurgu */

/* Grafik Konteynerleri */
.chart-container { position: relative; height: 400px; width: 100%; margin-top: 20px; }
.chart-container-small { position: relative; height: 250px; width: 100%; }

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Yüklenme Animasyonu Stilleri */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-container {
    text-align: center;
}

.loader-container p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 1.1rem;
}

.spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid var(--card-border);
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- MOBİL UYUMLULUK (RESPONSIVE) DÜZELTMELERİ --- */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .card .value {
        font-size: 1.5rem;
    }

    .chart-container {
        height: 300px; /* Mobil cihazlarda grafik yüksekliğini azalt */
    }
}