/* EMERGENCY SIDEBAR VISIBILITY FIX */
/* This CSS will force the sidebar to be visible at all costs */

/* Reset all potentially conflicting classes */
* {
    box-sizing: border-box;
}

/* Force sidebar container */
.sidebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 250px !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateX(0) !important;
    transition: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force navigation container */
.nav-scrollable {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    background: transparent !important;
    padding: 1rem !important;
}

/* Force all Bootstrap display classes */
.d-none,
.d-lg-none,
.collapse:not(.show) {
    display: block !important;
}

.d-block,
.d-lg-block {
    display: block !important;
}

/* Force navigation items */
.nav-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0.5rem 0 !important;
}

.nav-link {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.25rem !important;
    transition: background-color 0.2s ease !important;
}

.nav-link:hover,
.nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Force menu expanded/collapsed classes */
.menu-expanded {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

.menu-collapsed {
    display: none !important;
}

/* Force navbar brand */
.navbar-brand {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* Force navbar toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Adjust main content to accommodate fixed sidebar */
main {
    margin-left: 250px !important;
    min-height: 100vh !important;
    width: calc(100% - 250px) !important;
    padding: 0 !important;
}

.content {
    padding: 2rem !important;
    width: 100% !important;
}

.top-row {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 1rem 2rem !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        width: 100% !important;
        transform: translateX(-100%) !important;
    }
    
    .sidebar.show {
        transform: translateX(0) !important;
    }
    
    main {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Force icons to show */
.oi {
    display: inline-block !important;
    margin-right: 0.5rem !important;
    width: 1rem !important;
    text-align: center !important;
}

/* Button styling for logout */
.btn-link {
    border: none !important;
    background: none !important;
    color: inherit !important;
    text-align: left !important;
    width: 100% !important;
    padding: 0.75rem 1rem !important;
}

.btn-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}
