/* Mobile Navigation Styles */
/* Offcanvas Menu */
.offcanvas {
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.offcanvas-header {
    border-bottom: 1px solid #eee;
    padding: 1rem 1.25rem;
}

.offcanvas-title {
    display: flex;
    align-items: center;
    color: #1A685B;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

.offcanvas-body {
    padding: 0;
    overflow-y: auto;
}

/* Menu Items */
.list-group-item {
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    color: #333;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.list-group-item i {
    width: 24px;
    text-align: center;
    margin-right: 0.75rem;
    color: #1A685B;
    font-size: 0.9em;
}

.list-group-item:hover,
.list-group-item:focus {
    background-color: #f8f9fa;
    color: #1A685B;
}

.list-group-item.active {
    background-color: #f1f8f7;
    color: #1A685B;
    border-left: 3px solid #1A685B;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0.25rem 0;
    background-color: #f8f9fa;
    box-shadow: none;
}

.dropdown-item {
    padding: 0.5rem 1.5rem 0.5rem 3.5rem;
    color: #555;
    font-size: 0.9em;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #e9ecef;
    color: #1A685B;
}

.dropdown-divider {
    margin: 0.25rem 1.5rem;
    border-color: #e9ecef;
}

/* Auth Buttons */
.auth-buttons {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn i {
    margin-right: 0.5rem;
}

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

.offcanvas.offcanvas-end.show {
    animation: slideInRight 0.3s ease-out;
}

/* Backdrop */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Active State for Dropdown Toggle */
.dropdown-toggle[aria-expanded="true"] {
    background-color: #f8f9fa;
    color: #1A685B;
}

.dropdown-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Ensure proper spacing for nested items */
.dropdown-menu .dropdown-item {
    padding-left: 3.5rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .offcanvas {
        width: 280px !important;
    }
    
    .offcanvas-body {
        max-height: calc(100vh - 60px);
    }
}

/* Fix for Bootstrap 5.3+ */
.offcanvas.offcanvas-end {
    right: -280px;
    width: 280px;
}

.offcanvas.show:not(.hiding), 
.offcanvas.showing {
    transform: translateX(-280px);
}

.offcanvas.hiding {
    transform: translateX(100%);
}
