/* Modern Sidebar Styles */
/* This file provides modern sidebar styling for the application */

/* Basic sidebar container */
.modern-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.modern-sidebar.collapsed {
    width: 70px;
}

/* Sidebar header */
.modern-sidebar .sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-sidebar .sidebar-header h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

/* Navigation items */
.modern-sidebar .nav-item {
    list-style: none;
    margin: 5px 10px;
}

.modern-sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modern-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.modern-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
}

.modern-sidebar .nav-link i {
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Collapsed state */
.modern-sidebar.collapsed .nav-link span {
    display: none;
}

.modern-sidebar.collapsed .nav-link {
    justify-content: center;
}

.modern-sidebar.collapsed .nav-link i {
    margin-right: 0;
}

/* Toggle button */
.sidebar-toggle {
    position: absolute;
    top: 15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .modern-sidebar {
        transform: translateX(-100%);
    }
    
    .modern-sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* Content wrapper adjustment */
.content-with-sidebar {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

.content-with-sidebar.sidebar-collapsed {
    margin-left: 70px;
}

@media (max-width: 768px) {
    .content-with-sidebar {
        margin-left: 0 !important;
    }
}
