:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0d1526;
    --bg-panel: rgba(10, 20, 35, 0.9);
    --accent: #00c8ff;
    --accent-dim: rgba(0, 200, 255, 0.2);
    --text-primary: #c5d4e8;
    --text-secondary: #6b8299;
    --text-muted: #4a6078;
    --success: #00ff96;
    --danger: #ff5050;
    --warning: #ffb84d;
}

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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, #0a1628 100%);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 100, 200, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 150, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(5, 10, 20, 0.95);
    border-right: 1px solid var(--accent-dim);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 0 20px 20px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--accent-dim);
}

.sidebar-logo h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar-logo p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu-item {
    margin: 5px 0;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 1rem;
}

.sidebar-menu-link:hover {
    background: rgba(0, 200, 255, 0.1);
    color: var(--accent);
    border-left-color: var(--accent);
}

.sidebar-menu-link.active {
    background: rgba(0, 200, 255, 0.15);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-menu-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sidebar-menu-link.disabled:hover {
    background: transparent;
    color: var(--text-secondary);
    border-left-color: transparent;
}

.sidebar-menu-icon {
    width: 20px;
    margin-right: 12px;
    font-size: 1.2rem;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .sidebar-logo h2,
    .sidebar-logo p,
    .sidebar-menu-link span {
        display: none;
    }

    .sidebar-menu-icon {
        margin-right: 0;
    }

    .main-content {
        margin-left: 60px;
    }
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--accent-dim);
}

.header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(0, 200, 255, 0.5);
}

.header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 8px;
}

/* Panels */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--accent-dim);
    border-radius: 4px;
    padding: 25px;
    position: relative;
    margin-bottom: 20px;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.panel-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.15);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid rgba(0, 200, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}
