/* Mobile Topbar Auth Buttons */
.mobile-auth-buttons {
    display: none;
}

/* Desktop Auth Button/Profile */
.nav-right-btn {
    display: block;
}

.mobile-btn-login,
.mobile-btn-register,
.mobile-btn-dashboard {
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.mobile-btn-login {
    background-color: transparent;
    border: 2px solid #012758;
    color: #012758;
}

.mobile-btn-login:hover {
    background-color: #012758;
    color: #fff;
    border-color: #012758;
}

.mobile-btn-register {
    background-color: #012758;
    border: 2px solid #012758;
    color: #fff;
}

.mobile-btn-register:hover {
    background-color: #001d42;
    border-color: #001d42;
    color: #fff;
}

.mobile-btn-dashboard {
    background-color: transparent;
    border: 2px solid #012758;
    color: #012758;
    padding: 8px 16px;
}

.mobile-btn-dashboard:hover {
    background-color: #012758;
    color: #fff;
    border-color: #012758;
}

.mobile-btn-login i,
.mobile-btn-register i,
.mobile-btn-dashboard i {
    margin-right: 5px;
    font-size: 13px;
}

/* Mobile Menu Right Container */
.mobile-menu-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Show mobile buttons and hide desktop button on mobile devices */
@media (max-width: 991px) {
    .mobile-auth-buttons {
        display: flex !important;
    }
    
    /* Hide desktop auth button/profile on mobile */
    .header-top-contact .nav-right-btn {
        display: none !important;
    }
}

/* Hide mobile buttons on desktop */
@media (min-width: 992px) {
    .mobile-auth-buttons {
        display: none !important;
    }
    
    /* Show desktop auth button/profile */
    .header-top-contact .nav-right-btn {
        display: block !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .mobile-btn-login,
    .mobile-btn-register {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .mobile-btn-dashboard {
        padding: 5px 12px;
    }
    
    .mobile-btn-login i,
    .mobile-btn-register i,
    .mobile-btn-dashboard i {
        font-size: 11px;
        margin-right: 3px;
    }
    
    .mobile-menu-right {
        gap: 8px;
    }
}

/* Hide text on very small screens, keep icon only */
@media (max-width: 375px) {
    .mobile-btn-login span,
    .mobile-btn-register span {
        display: none;
    }
    
    .mobile-btn-login,
    .mobile-btn-register {
        padding: 6px 10px;
    }
    
    .mobile-btn-login i,
    .mobile-btn-register i {
        margin-right: 0;
        font-size: 14px;
    }
}

/* Ensure navbar logo is visible on mobile */
@media (max-width: 991px) {
    .navbar-brand {
        max-width: 140px;
    }
    
    .navbar-brand img {
        max-height: 40px;
        width: auto;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        max-width: 120px;
    }
    
    .navbar-brand img {
        max-height: 35px;
    }
}
