/* 
  Modern Dark Glassmorphism CSS Architecture - High Contrast Edition
  Mail & Profil Toplayıcı Pro
*/

:root {
    --bg-dark: #090d16;
    --bg-card: rgba(19, 26, 43, 0.85);
    --bg-card-border: rgba(255, 255, 255, 0.12);
    --bg-hover: rgba(255, 255, 255, 0.08);
    
    --accent-indigo: #6366f1;
    --accent-indigo-glow: rgba(99, 102, 241, 0.3);
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-emerald: #10b981;
    
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --text-sub: #94a3b8;
    
    --sidebar-width: 260px;
    --topbar-height: 70px;
    --radius-main: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Yüksek Kontrastlı Metin Sınıfları */
.text-muted, small.text-muted, p.text-muted {
    color: var(--text-muted) !important;
}

.text-sub, .nav-section {
    color: var(--text-sub) !important;
}

/* App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(13, 18, 30, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--bg-card-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--bg-card-border);
    gap: 12px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.brand-text {
    font-size: 1.1rem;
    color: var(--text-main);
}

.badge.bg-indigo-glow {
    background: var(--accent-indigo-glow);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.sidebar-nav {
    padding: 20px 14px;
    overflow-y: auto;
}

.nav-section {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8 !important;
    letter-spacing: 1px;
    margin: 18px 12px 8px 12px;
}

.sidebar .nav-link {
    color: #cbd5e1;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    margin-bottom: 4px;
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background: var(--bg-hover);
    transform: translateX(3px);
}

.sidebar .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    background: rgba(13, 18, 30, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-card-border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    sticky: top;
    top: 0;
    z-index: 900;
}

.user-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--bg-card-border);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.btn-outline-glow {
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #818cf8;
    background: var(--accent-indigo-glow);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 600;
}

.btn-outline-glow:hover {
    background: var(--accent-indigo);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

/* Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-main);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.indigo { background: rgba(99, 102, 241, 0.25); color: #818cf8; }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.25); color: #38bdf8; }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.25); color: #34d399; }
.stat-icon.pink { background: rgba(236, 72, 153, 0.25); color: #f472b6; }

.stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.88rem;
    color: #cbd5e1;
    font-weight: 600;
}

/* Tables - Yüksek Okunabilirlik */
.custom-table {
    width: 100%;
    color: #ffffff;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.custom-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1 !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 16px;
    border: none;
}

.custom-table th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.custom-table th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.custom-table td {
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-top: 1px solid var(--bg-card-border);
    border-bottom: 1px solid var(--bg-card-border);
    vertical-align: middle;
    color: #f1f5f9;
}

.custom-table tr td:first-child {
    border-left: 1px solid var(--bg-card-border);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.custom-table tr td:last-child {
    border-right: 1px solid var(--bg-card-border);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.08);
}

/* Forms */
.form-control, .form-select {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-indigo) !important;
    box-shadow: 0 0 0 3px var(--accent-indigo-glow) !important;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-gradient:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.5);
    color: white;
}

.text-gradient {
    background: linear-gradient(135deg, #818cf8, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Sidebar Toggle */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}
