body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

/* NAVBAR GRUNNLEGGENDE */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #004f80;
    color: #fff;
    padding: 0.5rem 1rem;

    /* Sticky header */
    position: sticky;
    top: 0;
    z-index: 2000;
}

.logo {
    height: 80px;
    width: auto;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

/* Høyre del av navbar */

.navbar-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Vanlige lenker */

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-auth {
    font-weight: bold;
}

/* Dropdowns */

.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.dropdown-toggle:hover {
    text-decoration: underline;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    background: #fff;
    color: #000;
    min-width: 180px;
    padding: 0.25rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown-content a {
    padding: 0.3rem 0.75rem;
    text-decoration: none;
    color: #000;
    white-space: nowrap;
    display: block;
}

.dropdown-content a:hover {
    background: #f0f0f0;
}

/* Når dropdown er åpen (settes via JS) */

.nav-item.dropdown.open > .dropdown-content {
    display: flex;
}

/* HAMBURGER-KNAPP (mobil) */

.nav-toggle {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    display: none; /* skjult på desktop */
}

/* RESTEN AV SIDEN */

main {
    padding: 1.5rem;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.4rem 0.6rem;
}

th {
    background: #f4f4f4;
    text-align: left;
}

.jubilee-row {
    background: #fff7cc; /* lys "gull" */
}

.jubilee-row td {
    border-bottom: 2px solid #f0c040;
}

/* Tving navbar til å være sticky øverst i vinduet */
header {
    position: sticky;
    top: 0;
    z-index: 3000;
}

.navbar {
    position: sticky !important;
    top: 0;
    z-index: 3000;
}

a.btn,
.btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #004f80;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

a.btn:hover,
.btn:hover {
    background: #0170bb;
    text-decoration: none;
}


/* MOBIL-LAYOUT */

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .navbar {
        align-items: flex-start;
    }

    .navbar-right {
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-top: 0.5rem;
        display: none; /* skjult som default */
    }

    .navbar.nav-open .nav-links {
        display: flex; /* vises når vi klikker hamburger */
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #004f80;
        color: #fff;
        padding-left: 1rem;
    }

    .dropdown-content a {
        color: #fff;
        padding-left: 0;
    }

    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
    }
}