:root {
    --bg-color: #050b14;
    --primary-glow: #00f0ff;
    --secondary-glow: #0055ff;
    --text-main: #f0f8ff;
    --text-muted: #8ab4f8;
    --glass-bg: rgba(10, 20, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Animated Gradient Mesh */
.db-bg::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 85, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.15) 0%, transparent 40%);
    z-index: -1;
    animation: drift 20s infinite alternate linear;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(5%, 5%);
    }
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphism Classes */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.login-box {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fff, var(--primary-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    max-width: 120px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.4);
}

.error-msg {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Atmosphere Background Mesh */
.site-atmosphere::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at center, var(--secondary-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--primary-glow) 0%, transparent 40%);
    opacity: 0.1;
    z-index: -1;
    animation: atmosphereDrift 20s infinite alternate linear;
    pointer-events: none;
}

@keyframes atmosphereDrift {
    from { transform: rotate(0deg); }
    to { transform: rotate(5deg); }
}

/* Global Nav */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 10%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 10%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.nav-brand span {
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-glow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-glow);
    border-radius: 2px;
}

/* Base Dashboard styles */
.dashboard-container {
    padding: 3rem 5%;
}

.page-title {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-main);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    z-index: 2100;
}

/* Mobile Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2050;
    display: flex;
    flex-direction: column;
    padding: 80px 40px;
    gap: 2rem;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 1px solid var(--glass-border);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Handling */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .navbar {
        padding: 1rem 5%;
    }

    .navbar.scrolled {
        padding: 0.8rem 5%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 5%;
    }
    
    .nav-brand span {
        font-size: 1.2rem;
    }
}