/* Responsive Sidebar Navigation for Larger Mobile Devices */

/* Hide sidebar on small screens */
@media (max-width: 767px) {
    .mobile-sidebar {
        display: none !important;
    }
    
    .hamburger-toggle {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}

/* Sidebar behavior for larger screens with hamburger toggle */
@media (min-width: 768px) {
    .mobile-sidebar {
        position: fixed;
        left: -300px; /* Hidden by default */
        top: 0;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
        z-index: 1050;
        overflow-y: auto;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .mobile-sidebar.show {
        left: 0; /* Visible when toggled */
    }
}

/* Hamburger menu button styling - only for larger screens */
@media (min-width: 768px) {
    .hamburger-toggle {
        background: #ff6b35;
        color: white;
        border: none;
        border-radius: 8px;
        width: 45px;
        height: 45px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    }

    .hamburger-toggle:hover {
        background: #e55a2b;
        transform: scale(1.05);
    }

    .hamburger-toggle i {
        font-size: 1.2rem;
    }

    /* Overlay for sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Content stays in place for all screens - using overlay sidebar */
.main-content,
.enhanced-header,
.top-contact-banner,
footer {
    margin-left: 0 !important;
    width: 100% !important;
}

/* Sidebar Header */
.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
}

.sidebar-logo img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.sidebar-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-left-color: white;
    transform: translateX(10px);
}

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

.sidebar-nav-item i {
    width: 24px;
    margin-right: 1rem;
    font-size: 1.2rem;
}



/* Small Mobile Devices - Keep Bottom Navigation */
@media (max-width: 767px) {
    .mobile-sidebar {
        display: none !important;
    }
    
    .bottom-navigation {
        display: flex !important;
    }
    
    .main-content {
        margin-left: 0;
        margin-bottom: 80px;
    }
    
    .enhanced-header {
        margin-left: 0;
        width: 100%;
    }
    
    footer {
        margin-left: 0;
        width: 100%;
        margin-bottom: 80px;
    }
}

/* Desktop - Hide both sidebar and bottom nav */
@media (min-width: 1025px) {
    .mobile-sidebar {
        display: none !important;
    }
    
    .bottom-navigation {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        margin-bottom: 0;
    }
    
    .enhanced-header {
        margin-left: 0;
        width: 100%;
    }
    
    footer {
        margin-left: 0;
        width: 100%;
        margin-bottom: 0;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.mobile-sidebar {
    animation: slideInLeft 0.3s ease-out;
}

/* Responsive adjustments for content */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: none;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hide mobile header elements that conflict with sidebar */
    .top-contact-banner {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

/* Ensure smooth transitions */
* {
    transition-property: margin-left, width, transform;
}