/* ===== BASE / RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center;
    padding: 0 32px;
    height: 64px;
    background: rgba(15,15,15,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.navbar .brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700;
    color: #fff; text-decoration: none;
}

.navbar .brand .logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255,0,0,0.4);
}

.navbar .nav-links {
    display: flex; align-items: center; gap: 4px;
    margin-left: 40px; list-style: none;
}

.navbar .nav-links a {
    padding: 8px 16px;
    border-radius: 8px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.navbar .user-area {
    margin-left: auto;
    display: flex; align-items: center; gap: 16px;
}

.navbar .user-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 13px; color: rgba(255,255,255,0.8);
}

.navbar .user-badge .avatar {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}

.navbar .btn-logout {
    padding: 8px 16px;
    background: rgba(255,50,50,0.12);
    border: 1px solid rgba(255,50,50,0.25);
    border-radius: 8px;
    color: #ff7070;
    text-decoration: none;
    font-size: 13px; font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.navbar .btn-logout:hover {
    background: rgba(255,50,50,0.2);
    transform: translateY(-1px);
}

/* ===== MAIN CONTAINER ===== */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ===== ALERT MESSAGES ===== */
.alert {
    padding: 13px 18px; border-radius: 12px;
    font-size: 14px; margin-bottom: 24px;
    display: flex; align-items: center; gap: 10px;
    animation: fadeInUp 0.4s ease forwards;
}

.alert-success {
    background: rgba(0,200,80,0.1);
    border: 1px solid rgba(0,200,80,0.25);
    color: #4dff9a;
}

.alert-error {
    background: rgba(255,50,50,0.12);
    border: 1px solid rgba(255,50,50,0.3);
    border-radius: 10px;
    color: #ff7070;
}
