:root {
    --primary-color: #2E0066;
    --primary-light: #00D1FF;
    --accent-color: #6C5CE7;
    --sidebar-width: 250px;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background: #f5f6fa;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.logo i {
    font-size: 32px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
}

/* Menu Sections */
.nav-section {
    margin-bottom: 24px;
}

.nav-section h2 {
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    margin-bottom: 4px;
    font-size: 14px;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.nav-item.active {
    background: var(--primary-light);
    font-weight: 500;
}

.nav-item i {
    font-size: 20px;
}

/* User Profile */
.user-profile {
    margin-top: auto;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.user-menu {
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.user-menu:hover {
    background: rgba(255,255,255,0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    max-width: calc(100vw - var(--sidebar-width));
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    background: #f5f6fa;
    padding: 10px 0;
    z-index: 900;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logout Button */
.logout-btn {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    margin-top: auto;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        max-width: 100vw;
    }

    .header {
        padding-left: 60px;
    }

    .menu-toggle {
        position: fixed;
        left: 10px;
        top: 10px;
        z-index: 1100;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
} 