/* Collapsible Sidebar Styles - Modern Design */
.sidebar {
    width: clamp(250px, 20vw, 300px);
    background: linear-gradient(180deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    border-right: 2px solid #475569;
    padding: clamp(20px, 3vh, 30px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-toggle {
    position: fixed;
    left: clamp(250px, 20vw, 300px);
    top: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #1e293b 100%);
    border: 2px solid #475569;
    border-left: none;
    border-radius: 0 15px 15px 0;
    padding: 12px 8px;
    color: white;
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #334155 0%, #64748b 50%, #334155 100%);
    border-color: #64748b;
}

.sidebar.collapsed + .sidebar-toggle {
    left: 0;
}

.main-content {
    flex: 1;
    margin-left: clamp(250px, 20vw, 300px);
    padding: clamp(20px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: clamp(40px, 6vh, 60px);
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

.sidebar-header {
    text-align: center;
    margin-bottom: clamp(20px, 3vh, 30px);
    padding-bottom: clamp(15px, 2vh, 20px);
    border-bottom: 2px solid rgba(71, 85, 105, 0.3);
}

.sidebar-title {
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 25%, #ea580c 50%, #dc2626 75%, #fbbf24 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #fbbf24;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: gradientShift 4s ease-in-out infinite;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .sidebar-title {
        background: none;
        color: #fbbf24;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.sidebar-subtitle {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-button {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: clamp(15px, 2vh, 20px);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 15px);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    transform: translateX(5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.nav-button.active {
    background: rgba(59, 130, 246, 0.6);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.nav-button .nav-icon {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    min-width: clamp(20px, 3vw, 25px);
}

.nav-button .nav-text {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: clamp(200px, 25vw, 250px);
    }
    
    .sidebar-toggle {
        left: clamp(200px, 25vw, 250px);
    }
    
    .main-content {
        margin-left: clamp(200px, 25vw, 250px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid #475569;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-start;
        gap: 6px;
        padding: 8px;
        transform: none !important;
    }
    
    .sidebar.collapsed {
        transform: none !important;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .sidebar-header {
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        padding-right: 8px;
        border-right: 1px solid rgba(71, 85, 105, 0.3);
    }

    .sidebar-title {
        font-size: 1rem;
    }

    .sidebar-subtitle {
        font-size: 0.6rem;
    }
    
    .nav-button {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        padding: 6px 4px;
        font-size: 0.65rem;
        flex-direction: column;
        text-align: center;
        gap: 2px;
        border-radius: 10px;
    }

    .nav-button .nav-icon {
        font-size: 1.1rem;
        min-width: auto;
    }

    .nav-button .nav-text {
        font-size: 0.6rem;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .main-content.expanded {
        margin-left: 0;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .sidebar {
        padding: 6px;
        gap: 4px;
    }
    
    .sidebar-header {
        padding-right: 6px;
    }
    
    .sidebar-title {
        font-size: 0.85rem;
    }
    
    .sidebar-subtitle {
        font-size: 0.55rem;
    }

    .nav-button {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        padding: 5px 3px;
    }

    .nav-button .nav-icon {
        font-size: 1rem;
    }

    .nav-button .nav-text {
        font-size: 0.55rem;
    }
} 
