/* Mobile Bottom Navbar */
.mobile-bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0751D9;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    height: 80px;
}

.nav-toggle-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.nav-hamburger-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    transition: background-color 0.3s ease;
    border-radius: 0;
    width: 80px;
    height: 80px;
}

.nav-hamburger-btn.active {
    background-color: #F42F2F;
}

.toggle-switch {
    background-color: white;
    position: relative;
    width: 100px;
    height: 26px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 0 3px;
}

.nav-toggle-btn.off .toggle-slider {
    background-color: var(--pmw-color-blue);
}

.toggle-label {
    position: absolute;
    left: 8px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    transition: opacity 0.3s ease;
}

.nav-toggle-btn.off .toggle-label {
    opacity: 0;
}

.toggle-slider {
    position: absolute;
    right: 3px;
    width: 20px;
    height: 20px;
    background: var(--pmw-color-blue, #065EFF);
    border-radius: 2px;
    transition: background 0.3s ease;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-toggle-btn.off .toggle-slider {
    transform: translateX(-27px);
}

.nav-toggle-btn i {
    font-size: 48px;
}

.hamburger-line {
    width: 48px;
    height: 6px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Transform hamburger to X when active */
.nav-hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(14px) rotate(45deg);
}

.nav-hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-14px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 95%;
    max-width: 95%;
    height: calc(100% - 80px) !important;
    background: var(--pmw-color-blue, #065EFF);
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow-y: scroll;
    transition: left 0.3s ease;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

/* Menu Header */
.mobile-menu-header {
    background-color: white;
    margin: 0;
    display: flex;
    justify-content: space-between;
    position: sticky;
    align-items: center;
    z-index: 3;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-menu-header .close-text {
    background: transparent;
    color: var(--pmw-color-blue, #065EFF);
    font-size: 1.5rem;
    font-weight: 600;
    gap: 8px;
    cursor: pointer;
    padding: 0 !important;
    margin: 0;
    flex: 1;
    text-align: right;
    padding-right: 12px !important;
}

.mobile-menu-close {
    padding: 0 !important;
    border: none !important;
    margin: 0;
}

.mobile-menu-close i {
    background-color: #F42F2F;
    color: white;
    font-size: 72px;
    height: 100%;
    width: 100%;
    padding: 0 10px !important;
    margin: 0;
}

/* Search Bar */
.mobile-menu-search {
    padding: 30px 38px 10px;
}

.search-input::placeholder {
    font-size: 1.4rem !important;
    padding-left: 10px;
    color: #464646;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 14px 16px;
}

.search-input-wrapper i {
    padding-right: 10px;
    font-size: 24px;
    color: #747474;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

/* Menu Body */
.mobile-menu-body {
    flex: 1;
    padding: 28px 38px 10px;
}

.mobile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: padding-left 0.2s ease;
}

.mobile-menu-item:hover {
    padding-left: 8px;
}

.menu-item-text {
    font-size: 1.5rem;
}

.mobile-menu-item i {
    font-size: 16px;
}

/* Acesso Rápido Section */
.mobile-menu-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgb(255, 255, 255);
}

.section-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Media Icons */
.mobile-menu-social {
    display: flex;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgb(255, 255, 255);
    z-index: 2;
    flex-wrap: wrap;
}

/* Accessibility Switch Styling */
.mobile-menu-body .form-check {
    width: 100%;
    overflow: hidden;
}

.mobile-menu-body .form-check-input {
    width: 4em;
    height: 2em;
    cursor: pointer;
    background-color: white;
    border: none;
}

.mobile-menu-body .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.mobile-menu-body .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
    border-color: #28a745;
}

.mobile-menu-body .form-check-label {
    font-size: 2rem;
    margin-left: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mobile-menu-body .form-check-label i {
    font-size: 2rem;
}

.social-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--pmw-color-blue, #065EFF);
    z-index: 2;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon i {
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon i::before {
    align-items: center;
}

.background-logo {
    position: absolute;
    bottom: 0;
    right: -20%;
    opacity: 0.15;
    width: 60%;
    z-index: 0;
    pointer-events: none;
}

/* Hide on desktop */
@media (min-width: 992px) {
    .mobile-bottom-navbar,
    .mobile-menu-overlay {
        display: none !important;
    }
}
