/* static/css/sidebar.css - Global Sidebar Styles */

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 60px);
    background: #f8f9fa;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: fixed;
    height: calc(100vh - 60px);
    top: 60px;
    left: 0;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation Styles */
.sidebar-nav {
    padding: 1rem 0;
    list-style: none;
    margin: 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    padding: 0 1.5rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #ffc107;
    font-weight: 600;
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    right: 1rem;
    width: 6px;
    height: 6px;
    background: #ffc107;
    border-radius: 50%;
}

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

.nav-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

/* User Section */
.sidebar-user {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ffc107, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 0.75rem;
}

.user-info {
    text-align: center;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.user-action-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.user-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    min-height: calc(100vh - 60px);
}

.content-header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: #495057;
}

.breadcrumb-separator {
    color: #dee2e6;
}

.page-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
}

.page-subtitle {
    margin: 0.25rem 0 0 0;
    color: #6c757d;
    font-size: 0.95rem;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .mobile-sidebar-toggle {
        position: fixed;
        top: 70px;
        left: 1rem;
        z-index: 1001;
        background: #667eea;
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        display: block;
    }
    
    .content-header {
        padding: 1rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) {
    .mobile-sidebar-toggle {
        display: none;
    }
}

/* Fix for disabled links */
.sidebar-nav a.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sidebar-nav a.disabled:hover {
    background: transparent;
    transform: none;
    border-left-color: transparent;
}