/* Custom menu styles - overrides for vpas-website.css */

/* Bottom section layout adjustments */
.vpas-nav .bottom-section .vtc-vpas-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Logo alignment to left */
.vpas-nav .bottom-section .logo {
    margin-right: auto;
}

/* Menu items alignment to right */
.vpas-nav .bottom-section .itemList {
    margin-left: auto;
}

/* Version display positioning */
.vpas-nav .bottom-section .version-display {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #666;
}

/* Language switcher highlighting */
.vpas-nav .lang-select {
    display: flex;
}

.vpas-nav .lang-select a {
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none !important;
}

.vpas-nav .lang-select a.active {
    color: #ffc222 !important;
    font-weight: bold !important;
    text-shadow: 0 0 1px rgba(255, 194, 34, 0.5) !important;
}

.vpas-nav .lang-select a:not(.active) {
    color: #ffffff;
}

.vpas-nav .lang-select a:not(.active):hover {
    color: #ffc222;
    text-shadow: 0 0 1px rgba(255, 194, 34, 0.3);
}

/* Ensure proper flexbox behavior for bottom section */
.vpas-nav .bottom-section {
    position: relative;
}

.vpas-nav .bottom-section .vtc-vpas-container {
    width: 100%;
    margin: 0 auto;
}

/* Mobile-specific padding for bottom section */
@media (max-width: 768px) {
    .vpas-nav .bottom-section .vtc-vpas-container {
        padding: 1rem 1rem 0 1rem;
    }
}

/* =================== MOBILE MENU STYLES =================== */

/* Mobile Navigation Container */
.vpas-nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.vpas-nav-mobile.active {
    display: block;
    transform: translateX(0);
}

/* Mobile Header */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-header .logo img {
    height: 40px;
    width: auto;
}

.mobile-header .close-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-header .close-icon:hover {
    background: #e9ecef;
    color: #0f2b5b;
}

.mobile-header .close-icon i {
    font-size: 1.2rem;
    color: #666;
}

/* Mobile Content */
.mobile-content {
    padding: 1rem 0;
}

/* Mobile User Section */
.mobile-user-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, #0f2b5b 0%, #075f9e 100%);
    color: #fff;
    margin-bottom: 1rem;
}

.mobile-user-section .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.mobile-user-section .user-info i {
    font-size: 1.5rem;
    color: #ffc222;
}

.mobile-user-section .user-details {
    line-height: 1.4;
}

.mobile-user-section .user-details small {
    opacity: 0.8;
}

.mobile-user-section .last-login {
    opacity: 0.7;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Mobile Language Section */
.mobile-lang-section {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e1e5e9;
}

.mobile-lang-section .lang-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #0f2b5b;
}

.mobile-lang-section .lang-title i {
    color: #00aeef;
}

.mobile-lang-section .lang-options {
    display: flex;
    gap: 0.5rem;
}

.mobile-lang-section .lang-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.mobile-lang-section .lang-btn.active {
    background: #0f2b5b;
    color: #fff;
}

.mobile-lang-section .lang-btn:not(.active):hover {
    background: #e9ecef;
    color: #0f2b5b;
}

/* Mobile Navigation Section */
.mobile-nav-section {
    padding: 1rem 0;
}

.mobile-nav-section .nav-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #0f2b5b;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.mobile-nav-section .nav-title i {
    color: #00aeef;
}

/* Mobile Menu */
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #f1f3f4;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu li.active {
    background: linear-gradient(90deg, rgba(15, 43, 91, 0.1) 0%, rgba(15, 43, 91, 0.05) 100%);
    border-left: 4px solid #0f2b5b;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 60px;
}

.mobile-menu a:hover {
    background: #f8f9fa;
    color: #0f2b5b;
}

.mobile-menu li.active a {
    color: #0f2b5b;
    font-weight: 500;
}

.mobile-menu a i:first-child {
    width: 20px;
    text-align: center;
    color: #00aeef;
    font-size: 1.1rem;
}

.mobile-menu a span {
    flex: 1;
}

.mobile-menu a i:last-child {
    color: #ccc;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.mobile-menu a:hover i:last-child {
    color: #0f2b5b;
    transform: translateX(3px);
}

/* Mobile Logout Section */
.mobile-logout-section {
    padding: 1.5rem;
    border-top: 1px solid #e1e5e9;
    margin-top: 1rem;
}

.mobile-logout-section .logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-logout-section .logout-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.mobile-logout-section .logout-btn i {
    font-size: 1.1rem;
}

/* Body scroll lock when mobile menu is open */
.body-no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .vpas-nav .bottom-section {
        flex-direction: column;
        gap: 1rem;
    }

    .vtc-vpas-container {
        gap: 1rem;
    }

    .vpas-nav .bottom-section .version-display {
        position: static;
        transform: none;
        order: 2;
    }

    .vpas-nav .bottom-section .logo {
        margin-right: 0;
        order: 1;
    }

    .vpas-nav .bottom-section .itemList {
        margin-left: 0;
        order: 3;
    }
}

/* Enhance mobile menu animation */
@media (max-width: 991px) {
    .vpas-nav-mobile {
        display: block;
    }
}

#area-lang-select a:not(:last-child)::after {
    content: "";
    display: inline-flex;
    height: 10px;
    width: 1px;
    color: #ffffff;
    margin: 0 16px;
    background: white;
}

#area-lang-select a {
    padding: 0;
}