/* Shared ElevenPlus Pro foundation, navigation and reusable controls */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar {
    width: 100%;
    max-width: 1200px;
    min-height: 82px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: inline-block;
    flex-shrink: 0;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.logo:hover, .logo:focus-visible {
    text-decoration: none;
}

.header-welcome {
    margin-left: auto;
    font-size: 15px;
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
}

.header-welcome:empty {
    display: none;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link, .dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.nav-link:hover, .nav-link:focus-visible, .dropdown-btn:hover, .dropdown-btn:focus-visible {
    outline: none;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    gap: 7px;
}

.dropdown-arrow {
    display: inline-block;
    font-size: 11px;
    transition: transform 0.2s ease;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1100;
    display: none;
    min-width: 270px;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.16);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.dropdown-content a:hover, .dropdown-content a:focus-visible {
    outline: none;
}

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-toggle:hover, .mobile-toggle:focus-visible {
    outline: none;
}

.nav-logout {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.nav-logout:hover, .nav-logout:focus-visible {
    outline: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary:hover, .btn-primary:focus-visible {
    outline: none;
}

footer {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin: 16px 0;
}

.footer-links a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover, .footer-links a:focus-visible {
    color: #66b2ff;
    text-decoration: underline;
    outline: none;
}

:root {
    --primary: #003366;
    --secondary: #0078d4;
}

@media (max-width: 900px) {
    .navbar {
        min-height: 72px;
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .logo {
        font-size: 23px;
    }
    .header-welcome {
        order: 3;
        width: 100%;
        margin: 0;
        font-size: 14px;
        text-align: center;
        white-space: normal;
    }
    .nav-buttons {
        order: 4;
        width: 100%;
        justify-content: center;
    }
    .main-nav {
        display: none;
        width: 100%;
        gap: 6px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-link, .dropdown-btn {
        width: 100%;
        min-height: 46px;
        padding: 12px 14px;
        justify-content: flex-start;
        text-align: left;
    }
    .dropdown {
        width: 100%;
    }
    .dropdown-btn {
        justify-content: space-between;
    }
    .dropdown-content {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        margin-top: 4px;
        padding: 6px;
        background: #f5f8fc;
        box-shadow: none;
    }
    .dropdown-content a {
        padding: 11px 14px;
    }
    .nav-logout {
        width: 100%;
        min-height: 46px;
        margin-top: 6px;
    }
    .mobile-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 12px 14px;
    }
    .logo {
        max-width: calc(100% - 62px);
        font-size: 20px;
    }
    .mobile-toggle {
        width: 44px;
        height: 42px;
    }
    .nav-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-buttons .btn {
        width: 100%;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
