/* Import Google Font Inter if not loaded */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Main Header Glassmorphic Styling */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.35); /* Soft slate dark translucent background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled header behavior (fallback/future-proof) */
.main-header.scrolled {
    background: rgba(15, 23, 42, 0.8);
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wau-navbar {
    padding: 0;
    background: transparent !important;
}

/* Brand Logo */
.brand-logo {
    height: 38px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-logo:hover {
    transform: scale(1.06) rotate(-1deg);
}

/* Custom Nav Links */
.nav-link-custom {
    position: relative;
    display: inline-block;
    padding: 8px 24px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-link-custom:hover {
    color: #00d1b2 !important;
    text-shadow: 0 0 10px rgba(0, 209, 178, 0.3);
}

/* Hover indicator slide/glow */
.nav-link-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d1b2, #00f2fe);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 209, 178, 0.4);
}

.nav-link-custom:hover .nav-link-indicator {
    width: 50%;
}

/* Customize active style */
.nav-link-custom.active {
    color: #00d1b2 !important;
}

.nav-link-custom.active .nav-link-indicator {
    width: 50%;
}

/* Custom hamburger toggler */
.custom-toggler {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    padding: 0;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
}

.custom-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

.toggler-bar {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Animations for transforming hamburger to X */
.custom-toggler:not(.collapsed) .top-bar {
    transform: translateY(9px) rotate(45deg);
    background-color: #00d1b2;
}

.custom-toggler:not(.collapsed) .middle-bar {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .bottom-bar {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #00d1b2;
}

/* Hide logo-wau inside videoTop because menu.html has it integrated and floating */
.videoTop .logo-wau {
    display: none !important;
}

/* Adjust videoTop padding-top or height so content starts below navbar or overlays it nicely */
.videoTop {
    /* Overlay layout is fine since menu is absolute/fixed over it */
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .main-header {
        padding: 12px 0;
    }

    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        margin-top: 15px;
        padding: 25px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    }

    .navbar-nav {
        width: 100%;
        text-align: center;
    }

    .nav-item {
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-item:last-child {
        margin-bottom: 0;
    }

    .nav-link-custom {
        display: block;
        padding: 12px 20px;
        width: 100%;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link-custom:hover {
        background: rgba(0, 209, 178, 0.1);
        border-color: rgba(0, 209, 178, 0.2);
    }

    .nav-link-indicator {
        display: none; /* Hide indicator on mobile */
    }
}

/* Page Scroll Behavior and Offset Targets */
html {
    scroll-behavior: smooth;
}

#prontuario,
#agenda,
#financeiro,
#estoque {
    scroll-margin-top: 100px; /* Offset to prevent header overlap */
}

