:root {
    --primary: #8a2be2;
    --primary-dark: #6a1b9a;
    --secondary: #9c27b0;
    --dark: #121212;
    --light: #ffffff;
    --gray: #333333;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 150px;
    height: 150px;
    animation: pulsate 2s ease-in-out infinite;
}

.splash-loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

.splash-text {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.splash-credits {
    font-size: 0.9rem;
    color: var(--primary);
    opacity: 0.8;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.menu-button {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.menu-button span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--light);
    transition: var(--transition);
}

.menu-button span:nth-child(1) { top: 0; }
.menu-button span:nth-child(2) { top: 9px; }
.menu-button span:nth-child(3) { top: 18px; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--primary-dark);
    z-index: 200;
    transition: var(--transition);
    padding: 80px 0 20px;
}

.sidebar.active {
    left: 0;
}

.close-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.close-sidebar span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--light);
    top: 50%;
    transform-origin: center;
}

.close-sidebar span:first-child {
    transform: rotate(45deg);
}

.close-sidebar span:last-child {
    transform: rotate(-45deg);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    gap: 15px;
}

.nav-item:hover {
    background: var(--primary);
}

.nav-item.active {
    background: var(--secondary);
}

/* Main Content */
.main-content {
    margin-top: 60px;
    padding: 20px;
    transition: var(--transition);
}

.frame-container {
    width: 100%;
    height: calc(100vh - 100px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 150;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animations */
@keyframes pulsate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        padding: 10px;
    }
}
