:root {
    --bg-deep: #02060c;
    --bg-panel: rgba(10, 25, 47, 0.95);
    --neon-blue: #00d2ff;
    --neon-glow: 0 0 15px rgba(0, 210, 255, 0.5);
    --text-main: #e0f2f1;
    --text-dim: #8892b0;
    --gradient-role: linear-gradient(90deg, #00d2ff, #3a7bd5);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Segoe UI', sans-serif;
    height: 100vh; overflow: hidden;
    display: flex; flex-direction: column;
}

header {
    padding: 15px 25px; display: flex; align-items: center;
    border-bottom: 1px solid rgba(0, 210, 255, 0.1);
    background: rgba(5, 12, 22, 0.8); backdrop-filter: blur(10px); z-index: 1000;
}

.menu-btn { font-size: 24px; color: var(--neon-blue); cursor: pointer; margin-right: 20px; }
.logo { font-weight: bold; letter-spacing: 2px; color: var(--neon-blue); text-shadow: var(--neon-glow); text-decoration: none; }

/* SIDEBAR */
.sidebar {
    position: fixed; left: -280px; top: 0; width: 280px; height: 100%;
    background: var(--bg-panel); border-right: 1px solid rgba(0, 210, 255, 0.2);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999;
    display: flex; flex-direction: column; padding-top: 80px;
}
.sidebar.active { left: 0; }
.nav-links { flex-grow: 1; padding: 0 15px; }

.nav-item {
    padding: 12px 15px; color: var(--text-main); border-radius: 8px;
    margin-bottom: 5px; transition: 0.3s; cursor: pointer;
}
.nav-item:hover { background: rgba(0, 210, 255, 0.1); color: var(--neon-blue); }

/* DROPDOWN */
.dropdown-menu { display: none; padding-left: 20px; }
.dropdown-menu.active { display: block; }
.arrow { font-size: 0.7rem; float: right; transition: 0.3s; }
.nav-dropdown.active .arrow { transform: rotate(180deg); }

/* USER SECTION */
.user-section {
    padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; align-items: center; cursor: pointer; position: relative;
}
.avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--gradient-role); border: 2px solid var(--neon-blue);
    margin-right: 15px; box-shadow: var(--neon-glow);
}
.account-popup {
    position: absolute; bottom: 80px; left: 20px; width: 240px;
    background: #0a192f; border: 1px solid var(--neon-blue);
    border-radius: 12px; padding: 15px; display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.account-popup.active { display: block; }

/* MAIN CONTENT */
main {
    flex-grow: 1; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at center, #0a192f 0%, #02060c 100%);
}

.content-section {
    background: var(--bg-panel); padding: 40px 30px; border-radius: 20px;
    border: 1px solid rgba(0, 210, 255, 0.2); width: 100%; max-width: 450px;
    text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.section-title { margin-bottom: 25px; color: var(--neon-blue); letter-spacing: 1px; }

.hidden { display: none; }

.btn-action {
    width: 100%; padding: 14px; background: transparent;
    border: 1px solid var(--neon-blue); color: var(--neon-blue);
    border-radius: 8px; cursor: pointer; font-weight: bold; margin-top: 10px;
    transition: 0.3s; text-transform: uppercase;
}
.btn-action:hover { background: var(--neon-blue); color: #000; box-shadow: var(--neon-glow); }

.auth-footer { margin-top: 20px; font-size: 0.9rem; color: var(--text-dim); }
.link-neon { color: var(--neon-blue); cursor: pointer; text-decoration: underline; font-weight: bold; }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 998; }
.overlay.active { display: block; }

input {
    width: 100%; padding: 12px; margin-bottom: 15px;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(0, 210, 255, 0.1);
    color: #fff; border-radius: 6px; outline: none; transition: 0.3s;
}
input:focus { border-color: var(--neon-blue); }
