/* 
 * Sidebar Fix CSS for Parasite SEO Factory
 * 
 * This CSS file contains critical styles for the sidebar with high-specificity selectors
 * to ensure they override any default styles that might be causing layout issues.
 */

/* Force sidebar to be visible with maximum specificity */
html body .page .sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%) !important;
    color: white !important;
    min-width: 250px !important;
    width: 250px !important;
    height: 100vh !important;
    position: sticky !important;
    top: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    display: block !important;
    z-index: 1000 !important;
}

/* Force page to use flex layout */
html body .page {
    display: flex !important;
    flex-direction: row !important;
    height: 100vh !important;
    overflow: hidden !important;
}

/* Force main content to take remaining space */
html body .page .main {
    flex: 1 !important;
    overflow-y: auto !important;
    height: 100vh !important;
    position: relative !important;
}

/* Style navigation items */
html body .sidebar .nav-item {
    font-size: 0.9rem !important;
    padding-bottom: 0.5rem !important;
    display: block !important;
}

html body .sidebar .nav-item:first-of-type {
    padding-top: 1rem !important;
}

html body .sidebar .nav-item a {
    color: #d7d7d7 !important;
    border-radius: 4px !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    line-height: 3rem !important;
    width: 100% !important;
}

html body .sidebar .nav-item a.active {
    background-color: rgba(255,255,255,0.25) !important;
    color: white !important;
}

html body .sidebar .nav-item a:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}

/* Fix for nested navigation */
html body .sidebar .nav-item .nav-item {
    padding-left: 1rem !important;
}

/* Fix for sidebar header */
html body .sidebar .top-row {
    background-color: rgba(0,0,0,0.4) !important;
    height: 3.5rem !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 1.5rem !important;
}

/* Fix for sidebar toggle button */
html body .sidebar-toggle {
    display: none !important;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    html body .page .sidebar {
        position: fixed !important;
        z-index: 1001 !important;
        left: 0 !important;
        top: 0 !important;
        height: 100% !important;
        transform: translateX(0) !important;
        transition: transform 0.3s ease-in-out !important;
    }
    
    html body .page .sidebar.collapsed {
        transform: translateX(-100%) !important;
    }
    
    html body .sidebar-toggle {
        display: block !important;
        position: fixed !important;
        top: 0.5rem !important;
        left: 0.5rem !important;
        z-index: 1002 !important;
        background-color: rgba(0,0,0,0.5) !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        padding: 0.5rem !important;
        cursor: pointer !important;
    }
}
