/*
CHANGE LOG
File: /var/www/html/prohrhq.com/static/css/afh_main.css
Document Type: CSS
Purpose: AFH sidebar layout system - handles sidebar geometry and responsive behavior
Main App: app.py
Context: Core layout CSS for left sidebar pattern
Version History:
2026-03-19 v1.0 - Initial creation for ProHRHQ site
*/

/* Sidebar */
.afh-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: white;
    overflow-y: auto;
    z-index: 1000;
    padding-bottom: 2rem;
}

.afh-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.afh-sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.afh-sidebar-header p {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

.afh-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.afh-sidebar li {
    margin: 0;
}

.afh-sidebar a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.afh-sidebar a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.afh-sidebar a.active {
    background-color: rgba(255,255,255,0.15);
    border-left-color: #3498db;
    color: white;
}

.sidebar-section-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem 0.25rem;
    margin-top: 0.5rem;
}

/* Main container - offset for sidebar */
.afh-main-container {
    margin-left: 280px;
    min-height: 100vh;
}

.afh-main-container main {
    padding: 2rem;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Back to top button */
.afh-back-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.afh-back-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.afh-back-top-btn:hover {
    background: #2980b9;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .afh-sidebar {
        display: none;
    }
    
    .afh-main-container {
        margin-left: 0;
    }
    
    .afh-main-container main {
        padding: 1rem;
    }
}
