/* Global Variables */
:root {
    --primary: #00ff88;
    --secondary: #7000ff;
    --bg-dark: #0a0b1e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-muted: #a0a0c0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-blue: #00f3ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Ensure footer sits at the bottom, not side */
    /* Optional: keep dashboard background gradient or allow individual pages to override */
    background-image: radial-gradient(circle at top right, rgba(112, 0, 255, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 255, 136, 0.05), transparent 40%);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: rgba(10, 15, 30, 0.9);
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    backdrop-filter: blur(20px);
    z-index: 100;
    overflow-y: auto;
    transform: translateX(-100%);
    /* Default Hidden (Off) */
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #555;
    margin: 20px 0 10px 10px;
    letter-spacing: 1px;
    font-weight: 700;
}

.nav-item {
    padding: 12px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 14px;
    font-weight: 500;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    margin-bottom: 5px;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1), transparent);
    color: var(--primary);
    border-color: rgba(0, 255, 136, 0.2);
}

.nav-icon {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.user-mini {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--secondary), #aa00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
}

/* Main Content Wrapper (Used in Dashboard) */
.main-content {
    margin-left: 0;
    width: 100%;
    padding: 20px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Support (Basic) */
body.light-mode {
    background: #f0f2f5;
    color: #333;
    --bg-dark: #f0f2f5;
    --text-main: #333;
    --text-muted: #666;
}

/* Responsive */
@media (min-width: 901px) {
    .container-shift {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 80%;
    }

    .container-shift {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Public Header Styles (from index.php) */
.navbar {
    background: #003366;
    /* Use the dark blue from stats section/footer for consistency */
    padding: 18px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.public-logo i {
    width: 32px;
    height: 32px;
    background: #fff;
    color: #003366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-nav {
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-login {
    background: #52c41a;
    color: #fff;
}

.btn-login:hover {
    background: #49b019;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.btn-signup {
    background: #ff9a3c;
    color: #fff;
}

.btn-signup:hover {
    background: #ff8c1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 31, 0.3);
}