/* Menu Button Base Styles */
.menu-toggle-btn {
    border: none;
    background: transparent;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    transition: all 0.3s ease;
}

.menu-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    border: 2px solid rgba(255, 107, 53, 0.3);
}

    .mobile-menu-btn:hover {
        border-color: #ff6b35;
        background-color: rgba(255, 107, 53, 0.1);
    }

        .mobile-menu-btn:hover .menu-line {
            background-color: #ff6b35;
        }

/* Menu Button Active State */
.menu-toggle-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Side Menu Panel */
.side-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
}

/* For RTL support */
[dir="rtl"] .side-menu-panel {
    right: auto;
    left: -100%;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu-panel.open {
    right: 0;
    opacity: 1;
    visibility: visible;
}

[dir="rtl"] .side-menu-panel.open {
    right: auto;
    left: 0;
}

.side-menu-header {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-height: 70px;
}

.side-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

    .side-menu-close:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }

.side-menu-title {
    color: white;
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
    text-align: center;
}

.side-menu-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    background-color: #141414;
}

.side-menu-content {
    padding: 20px;
    min-height: 100%;
}

/* Empty Menu State */
.side-menu-empty {
    text-align: center;
    padding: 40px 20px;
}

.side-menu-empty-icon {
    font-size: 3rem;
    color: #666;
    margin-bottom: 20px;
}

.side-menu-empty-title {
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.side-menu-empty-text {
    color: #888;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.side-menu-empty-btn {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .side-menu-empty-btn:hover {
        background-color: #e55a2b;
        transform: translateY(-2px);
    }

/* Menu Overlay */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1099;
    display: none;
    animation: fadeIn 0.3s ease;
}

    .side-menu-overlay.show {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .desktop-menu {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .navbar-brand {
        flex: 1;
    }

    .d-flex.align-items-center {
        order: 2;
    }
}

@media (max-width: 576px) {
    .side-menu-panel {
        width: 280px;
    }

    .mobile-menu-btn {
        padding: 8px 12px;
    }
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .desktop-menu {
        display: flex !important;
    }
}

/* Scrollbar Styling */
.side-menu-body::-webkit-scrollbar {
    width: 6px;
}

.side-menu-body::-webkit-scrollbar-track {
    background: transparent;
}

.side-menu-body::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 3px;
}

    .side-menu-body::-webkit-scrollbar-thumb:hover {
        background: #e55a2b;
    }

/* Loading Spinner */
.spinner-border.text-orange {
    color: #ff6b35 !important;
    width: 3rem;
    height: 3rem;
}
