/* Migma Supreme Fütüristik & Performanslı Karanlık Tema */
:root {
    --bg-base: #0a0a0f;          /* Performans dostu düz koyu arka plan */
    --bg-surface: #12141d;       /* Kart arka planları */
    --bg-surface-hover: #1a1d29;
    
    --primary: #3b82f6;          /* Mavi ağırlıklı ana renk (Mor azaltıldı) */
    --primary-glow: rgba(59, 130, 246, 0.4);
    
    --secondary: #8b5cf6;        /* İkincil renk mor */
    
    --accent: #10b981;           /* Yeşil */
    --danger: #ef4444;           /* Kırmızı */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --border-color: rgba(59, 130, 246, 0.2);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

body { 
    background-color: var(--bg-base); 
    /* Kasmayı engellemek için grid veya radial-gradient iptal edildi, sadece düz modern siyah-mavi */
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Navbar - Blur iptal edildi (performans için) */
.navbar-custom {
    background: #0a0a0f;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 15px 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    color: #fff !important;
    font-size: 1.6rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted) !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    margin: 0 5px;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    background: rgba(59, 130, 246, 0.1);
}

.nav-link.active {
    border-bottom: 2px solid var(--primary);
}

/* Kullanıcı Profili */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px 4px 4px;
    background: #12141d;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

/* Kart Tasarımı - Animasyonlar ve Ağır Gölgeler Kaldırıldı */
.dashboard-card { 
    background: var(--bg-surface); 
    border-radius: var(--radius-md); 
    padding: 24px; 
    border: 1px solid rgba(59, 130, 246, 0.15);
    margin-bottom: 24px; 
}

.dashboard-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.card-header-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form Elemanları */
.form-control, .form-select, .input-group-text {
    border-radius: var(--radius-sm);
    border: 1px solid #334155;
    padding: 10px 14px;
    font-size: 0.95rem;
    background-color: #0f111a !important; 
    color: #f8fafc !important; 
    color-scheme: dark;
}

.input-group-text {
    background-color: #1e293b; 
    color: var(--primary);
    border-right: none;
    font-weight: 600;
}

.form-control:focus, .form-select:focus {
    background-color: #12141d;
    border-color: var(--primary);
    color: #ffffff !important;
    box-shadow: none;
    outline: none;
}

.form-control::placeholder, .ai-textarea::placeholder, input::placeholder, textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.form-label {
    font-weight: 500;
    color: #cbd5e1; 
    margin-bottom: 6px;
    font-size: 0.85rem;
}

/* Butonlar - Transform/Kıpırdama Yok */
.btn-custom-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 600;
}

.btn-custom-primary:hover {
    background: #2563eb;
    color: white;
}

.btn-discord {
    background-color: #5865F2;
    color: white;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-discord:hover {
    background-color: #4752C4;
    color: white;
}

/* Veri Kaydet Butonu */
.btn-submit-data {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-submit-data:hover {
    background: #2563eb;
    color: white;
}

.btn-submit-data:active {
    transform: scale(0.98);
}

/* Tablolar */
.table-custom {
    margin-bottom: 0;
    color: #cbd5e1;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom th {
    background-color: #0f111a; 
    color: var(--primary); 
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 16px 12px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    border-top: none;
}

.table-custom td {
    padding: 14px 12px;
    vertical-align: middle;
    color: #f8fafc; 
    border-bottom: 1px solid #1e293b;
    background-color: transparent;
}

.table-custom tbody tr:hover td {
    background-color: #1a1d29; 
}

/* Rozetler/Statüler */
.badge {
    padding: 6px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge.bg-primary {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid #3b82f6;
}

.badge.bg-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid #10b981;
}

/* Değer Metinleri - Gölge Yok */
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-primary { color: #3b82f6 !important; }
.text-info { color: #0ea5e9 !important; }
.text-warning { color: #f59e0b !important; }
.text-muted { color: #cbd5e1 !important; } /* Siyah kalmasını engeller, okunabilir parlak gri yapar */

/* AI Alanı - Sadeleştirildi */
.ai-glass-card {
    background: #12141d;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(59, 130, 246, 0.3); 
    margin-bottom: 24px;
}

.ai-textarea {
    background-color: #0f111a !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
    font-size: 1rem !important;
    padding: 15px !important;
    border-radius: 8px !important;
    min-height: 120px;
    resize: none;
}

.ai-textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: none !important;
}

.btn-ai-action {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-ai-action:hover {
    background: #2563eb;
}

.ai-report-box {
    background-color: #0f111a;
    border: 1px solid #334155; 
    border-radius: 8px;
    padding: 20px;
    color: #f8fafc;
    line-height: 1.7;
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

.ai-report-box strong {
    color: var(--primary); 
    font-weight: 700;
}

/* Modal */
.modal-content {
    background-color: #12141d;
    border: 1px solid #334155;
    border-radius: var(--radius-md);
}

.modal-header {
    border-bottom: 1px solid #1e293b;
    background: #0f111a;
}

.modal-title {
    color: #fff;
    font-weight: 700;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.main-content {
    padding: 30px 0 60px 0;
    flex-grow: 1;
}

/* Footer */
.site-footer {
    padding: 20px 0;
    margin-top: auto;
    border-top: 1px solid #1e293b;
    background: #0a0a0f;
}

.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-footer .footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.site-footer .footer-brand i {
    color: var(--primary);
    margin-right: 8px;
}

.site-footer .footer-credits {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.site-footer .credit-item span {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .site-footer .footer-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
}