/* Lava U - Common Styles */
/* ======================== */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    --primary: #ff6b35;
    --primary-dark: #cc4500;
    --primary-light: #ff8c5a;
    --secondary: #60a5fa;
    --accent: #ffd700;
    --bg-dark: #0a0505;
    --bg-card: rgba(15, 10, 8, 0.85);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 107, 53, 0.15);
    --text: #fff;
    --text-muted: rgba(255, 200, 150, 0.6);
    --success: #4ade80;
    --danger: #ef4444;
    --glow-primary: 0 0 40px rgba(255, 107, 53, 0.4);
    --glow-accent: 0 0 30px rgba(255, 215, 0, 0.3);
    --nav-height: 56px;
}

/* Base Body */
body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 69, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 0, 0, 0.2) 0%, transparent 60%),
        linear-gradient(180deg, #0a0505 0%, #1a0a05 50%, #0d0503 100%);
    background-attachment: fixed;
    font-family: 'Exo 2', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

/* Background Pulse Animation */
@keyframes bgPulse {
    0% { background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%; }
    100% { background-size: 120% 120%, 110% 110%, 130% 130%, 100% 100%; }
}

body.animate-bg {
    animation: bgPulse 8s ease-in-out infinite alternate;
}

/* ======================== */
/* Top Navbar */
/* ======================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: linear-gradient(90deg, rgba(20, 10, 5, 0.95) 0%, rgba(30, 15, 10, 0.98) 100%);
    border-bottom: 2px solid rgba(255, 69, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.2);
    gap: 12px;
}

.sidebar::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 107, 53, 0.8) 20%,
        rgba(255, 69, 0, 1) 50%,
        rgba(255, 107, 53, 0.8) 80%,
        transparent 100%);
    animation: navGlow 3s ease-in-out infinite;
}

@keyframes navGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.nav-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 50%, #cc3700 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 200, 100, 0.8);
    margin-right: 8px;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 69, 0, 0.7);
}

.nav-items {
    display: flex;
    gap: 6px;
}

.nav-item {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 150, 100, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.nav-item:hover {
    background: rgba(255, 69, 0, 0.2);
    color: #ff6b35;
    transform: translateY(-2px);
}

.nav-item.active {
    background: rgba(255, 69, 0, 0.3);
    color: #ff6b35;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ff4500);
    border-radius: 4px 4px 0 0;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.nav-item .tooltip {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 15, 10, 0.95);
    color: #ff6b35;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 69, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.nav-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: 54px;
}

/* ======================== */
/* Page Layout */
/* ======================== */
.page-wrapper {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    padding: 12px 16px;
}

.page-wrapper.compact {
    padding: 4px 8px;
    height: calc(100vh - var(--nav-height));
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ======================== */
/* Common Components */
/* ======================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 69, 0, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 200, 150, 0.8);
    border: 1px solid rgba(255, 69, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 69, 0, 0.2);
    color: #ff6b35;
    border-color: #ff6b35;
}

/* Cards */
.card {
    background: rgba(15, 10, 8, 0.6);
    border: 1px solid rgba(255, 69, 0, 0.15);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.card-glow {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Form Elements */
.input, .select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input:focus, .select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.input::placeholder {
    color: rgba(255, 200, 150, 0.4);
}

/* Vignette Effect */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 200, 150, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.back-link:hover {
    color: #ff6b35;
}

.back-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Titles */
.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b35;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.5);
    margin-bottom: 8px;
}

.page-subtitle {
    color: rgba(255, 200, 150, 0.7);
    font-size: 1rem;
}

/* ======================== */
/* Mobile Responsive */
/* ======================== */
@media (max-width: 768px) {
    .sidebar {
        padding: 0 12px;
        gap: 8px;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
        font-size: 10px;
    }

    .nav-item {
        width: 36px;
        height: 36px;
    }

    .nav-item svg {
        width: 18px;
        height: 18px;
    }

    .page-wrapper {
        padding: 8px 12px;
    }

    .page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --nav-height: 50px;
    }

    .nav-logo {
        width: 32px;
        height: 32px;
        font-size: 9px;
        margin-right: 4px;
    }

    .nav-item {
        width: 32px;
        height: 32px;
    }

    .nav-item svg {
        width: 16px;
        height: 16px;
    }

    .nav-items {
        gap: 4px;
    }
}
