@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff0000;       /* Zen Kırmızısı */
    --primary-glow: rgba(255, 0, 0, 0.5);
    --glass-bg: rgba(20, 20, 20, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65); /* Okunabilir Gri */
}

/* --- 1. GENEL AYARLAR & ARKA PLAN --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #050505;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    
    /* Hareketli Arka Plan (Red Nebula) */
    background: radial-gradient(circle at 20% 20%, #2a0000, #000000),
                radial-gradient(circle at 80% 80%, #1a0000, #000000);
    background-size: 150% 150%;
    animation: gradientMove 20s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a { text-decoration: none; color: var(--text-main); transition: 0.3s; }
a:hover { color: var(--primary-color); }

/* Bootstrap Text-Muted Override (Okunabilirlik İçin) */
.text-muted { color: var(--text-muted) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }

/* --- 2. GLASSMORPHISM KARTLAR --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- 3. YENİ PREMIUM ÜST MENÜ & BUTONLAR --- */
.btn-glass-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px; /* Hap Şekli */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-glass-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    color: #fff;
}

/* Rapor Butonu Glow */
.btn-glass-nav.btn-glow-info:hover {
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    border-color: #3498db;
    color: #3498db !important;
}

/* Çıkış Butonu Glow */
.btn-glass-nav.btn-glow-danger:hover {
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
    border-color: #e74c3c;
    color: #e74c3c !important;
}

/* --- 4. FORM ELEMANLARI (GÜNCELLENDİ) --- */
label {
    color: #ffffff !important;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control, .form-select, textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    padding: 14px 18px;
    border-radius: 12px;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    color: #ffffff !important;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Input Group (TL vb.) */
.input-group-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* --- 5. STANDART BUTONLAR --- */
.btn-danger {
    background: linear-gradient(135deg, #e60000 0%, #990000 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(200, 0, 0, 0.4);
    color: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #ff1a1a 0%, #cc0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #5dade2 0%, #2980b9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

/* --- 6. TABLO TASARIMI --- */
.table-dark { background: transparent !important; --bs-table-bg: transparent !important; }
.table tr { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.table th {
    color: var(--primary-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding-bottom: 15px;
    border: none;
    letter-spacing: 1px;
}
.table td {
    color: #e0e0e0 !important;
    padding: 15px 10px;
    border: none;
}

/* --- 7. ROZETLER (BADGES) --- */
.badge { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.5px; }
.badge-success { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }
.badge-danger  { background: rgba(231, 76, 60, 0.15); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }
.badge-pending { background: rgba(241, 196, 15, 0.15); color: #f1c40f; border: 1px solid rgba(241, 196, 15, 0.3); }
.badge-info    { background: rgba(52, 152, 219, 0.15); color: #3498db; border: 1px solid rgba(52, 152, 219, 0.3); }
.badge-warning { background: rgba(230, 126, 34, 0.15); color: #e67e22; border: 1px solid rgba(230, 126, 34, 0.3); }

/* --- 8. İSTATİSTİK KARTLARI --- */
.stat-card {
    display: flex; align-items: center; justify-content: space-between; min-height: 100px;
}
.stat-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}

/* --- 9. MODAL & SCROLLBAR --- */
.modal-content {
    background-color: #101010 !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
.modal-header { border-bottom: 1px solid rgba(255,255,255,0.1); }
.btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* Upload Area (Dropzone) */
.upload-area:hover {
    border-color: #fff !important;
    background: rgba(255,255,255,0.05) !important;
}

/* Sunucu Hatası vs için Alert */
.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff8b94;
}
.alert-success {
    background: rgba(25, 135, 84, 0.15);
    border: 1px solid rgba(25, 135, 84, 0.3);
    color: #75b798;
}
/* Logo Kutusu */
.logo-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff0000 0%, #990000 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* Navbar Düzeni */
.navbar {
    z-index: 1000;
}