/* =========================================================
   TourVista - Clean Modern White Navbar (Reference Match)
   ========================================================= */

.navbar-tourvista {
    background: #ffffff !important;
    border-bottom: 1px solid #eef0f3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 0.65rem 1.5rem !important;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Brand Logo */
.navbar-tourvista .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 2rem;
    text-decoration: none;
}

.navbar-tourvista .navbar-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.navbar-tourvista .navbar-logo:hover {
    transform: scale(1.02);
}

/* Nav Links - Clean Bold Text Matching Reference */
.navbar-tourvista .navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.navbar-tourvista .navbar-nav .nav-link {
    color: #2d3748 !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.45rem 1rem !important;
    margin: 0 2px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.navbar-tourvista .navbar-nav .nav-link:hover,
.navbar-tourvista .navbar-nav .nav-link:focus,
.navbar-tourvista .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: #534AB7 !important;
}

/* Theme Toggle Switch */
.theme-switch-pill {
    width: 48px;
    height: 26px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: all 0.25s ease;
}

.theme-switch-knob {
    width: 20px;
    height: 20px;
    background: #f59e0b;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.4);
}

/* Dark theme state for switch */
html[data-theme="dark"] .theme-switch-pill {
    background: #2d3748;
    border-color: #4a5568;
}

html[data-theme="dark"] .theme-switch-knob {
    transform: translateX(22px);
    background: #818cf8;
    box-shadow: 0 1px 4px rgba(129, 140, 248, 0.4);
}

/* Auth Buttons Matching Reference */
.navbar-tourvista .btn-nav-login {
    color: #5b36c6 !important;
    background: #ffffff !important;
    border: 1.5px solid #5b36c6 !important;
    border-radius: 8px;
    padding: 0.4rem 1.15rem;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.navbar-tourvista .btn-nav-login:hover {
    background: #f5f3ff !important;
    color: #4c28b5 !important;
    border-color: #4c28b5 !important;
}

.navbar-tourvista .btn-nav-register {
    background: #5b36c6 !important;
    color: #ffffff !important;
    border: 1.5px solid #5b36c6 !important;
    border-radius: 8px;
    padding: 0.4rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(91, 54, 198, 0.25);
    transition: all 0.2s ease;
}

.navbar-tourvista .btn-nav-register:hover {
    background: #4c28b5 !important;
    border-color: #4c28b5 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(91, 54, 198, 0.35);
}

/* User Profile Dropdown */
.navbar-tourvista .btn-user-profile {
    background: #f8f6fe !important;
    border: 1.5px solid #5b36c6 !important;
    color: #5b36c6 !important;
    border-radius: 8px;
    padding: 0.35rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.navbar-tourvista .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 210px;
}

.navbar-tourvista .dropdown-item {
    color: #2d3748 !important;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.navbar-tourvista .dropdown-item:hover {
    background: #f5f3ff !important;
    color: #5b36c6 !important;
}

.navbar-tourvista .navbar-toggler {
    border: 1.5px solid #5b36c6 !important;
    border-radius: 8px;
    padding: 5px 9px;
    color: #5b36c6 !important;
}

.navbar-tourvista .navbar-toggler-icon {
    filter: invert(24%) sepia(85%) saturate(3041%) hue-rotate(250deg) brightness(88%) contrast(92%);
}

/* Dark mode adjustments */
html[data-theme="dark"] .navbar-tourvista {
    background: #181824 !important;
    border-bottom: 1px solid #28283c;
}

html[data-theme="dark"] .navbar-tourvista .nav-link {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .navbar-tourvista .nav-link:hover {
    color: #a78bfa !important;
    background: rgba(167, 139, 250, 0.12);
}

html[data-theme="dark"] .navbar-tourvista .btn-nav-login {
    background: transparent !important;
    color: #a78bfa !important;
    border-color: #a78bfa !important;
}

html[data-theme="dark"] .navbar-tourvista .btn-nav-register {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
}
