/* === Grunnleggende stil === */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0 auto;
    padding: 10px;
    padding-top: 100px;
    line-height: 1.6;
    max-width: 900px;
}

h1, h2, h3 {
    margin: 0;
    padding: 0px 0;
    text-align: center;
    color: #5aa9e6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
h2 {
    font-size: 25px;    
}

p {
    margin: 10px 0;
    color: #0b1440;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #005b99;
}

/* === Seksjoner og Layout === */
.section-wrapper {
    padding: 20px; /* Luft på innsiden av seksjonen */
    margin: 20px auto; /* Luft på utsiden av seksjonen */
    max-width: 95%; /* Sikrer at innholdet aldri dekker hele skjermbredden */
    background-color: #ffffff; /* Bakgrunnsfarge for tydelig avgrensning */
    border-radius: 8px; /* Myke hjørner */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Diskré skygge */
    box-sizing: border-box; /* Inkluder padding i total bredde */
}

.section-container {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    background: #0b1440ff; /* Gradient farge */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Gjør teksten gradient */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #0b1440ff; /* Underlinje */
    padding-bottom: 0px; /* Luft mellom tekst og linje */
    margin-bottom: 0px; /* Luft under overskriften */
}


.content-container {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .section-wrapper {
        padding: 6px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section-wrapper {
        padding: 4px;
        max-width: 100%;
    }
}

/* === Knapper === */

button {
    background-color: #0b1440;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    padding: 5px 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #005b99;
}

button:active {
    background-color: #5aa9e6;
    /* transform: scale(0.95); */
}


/* Primære knapper (store ikoner) */
.btn-primary, .button-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background: #0b1440ff; /* Pastellblå gradient */
    border-radius: 8px;
    box-shadow: 0 3px 8px rgb(0 0 0);
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 120px; /* Justert for bedre layout */
    height: 105px; /* Justert for bedre layout */
    margin: 5px; /* Avstand mellom knapper */
}

.btn-primary:hover, .button-container a:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary i, .button-container a i {
    font-size: 18px; /* Ikonstørrelse */
    margin-bottom: 6px; /* Justert avstand mellom ikon og tekst */
    color: #ffffff; /* Farge på ikoner */
}

.btn-primary span, .button-container a span {
    font-size: 14px; /* Tekststørrelse */
    text-align: center;
    margin: 0;
    font-weight: 700;
}

/* Standardknapper (avlange knapper) */
.btn-standard {
    display: inline-block;
    background-color: #5aa9e6; /* Blå bakgrunn */
    color: white;
    font-size: 14px;
    padding: 8px 20px; /* Avlang form */
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s;
    margin: 5px auto; /* Avstand mellom knapper */
}

.btn-standard:hover {
    background-color: #005b99; /* Mørkere blå ved hover */
    transform: translateY(-2px);
}

.btn-standard:active {
    background-color: #5aa9e6; /* Enda mørkere blå ved klikk */
    transform: translateY(1px);
}

.btn-standard:disabled {
    background-color: #cccccc; /* Grå farge for deaktivert */
    color: #666;
    cursor: not-allowed;
}

/* === Responsiv stil === */
@media (max-width: 768px) {
    .btn-primary, .button-container a {
        width: 120px; /* Mindre bredde */
        height: 105px; /* Mindre høyde */
        font-size: 12px;
    }

    .btn-primary i, .button-container a i {
        font-size: 16px; /* Mindre ikonstørrelse */
    }
}

@media (max-width: 480px) {
    .btn-primary, .button-container a {
        width: 120px; /* Kompakt bredde */
        height: 105px; /* Kompakt høyde */
        font-size: 10px; /* Mindre tekst */
    }

    .btn-primary i, .button-container a i {
        font-size: 40px; /* Mindre ikonstørrelse */
    }
}

/* === Tabeller === */
.table-container {
    overflow-x: hidden; /* Forhindrer horisontal scrolling */
    width: 100%;
    margin: 20px auto; /* Sentraliser tabellen */
    padding: 0 10px; /* Legg til litt luft på sidene */
    border: 1px solid #ddd; /* Diskré kant */
    border-radius: 10px; /* Runde hjørner */
    background-color: #e7e7e7; /* Hvit bakgrunn */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Lett skygge for dybde */
    box-sizing: border-box; /* Inkluder padding i breddeberegningen */
}

/* Tabellen */
.responsive-table {
    width: 100%; /* Full bredde av containeren */
    border-collapse: collapse;
    text-align: center;
    font-size: 15px;
    color: #333;
    table-layout: fixed; /* Kolonner med fast bredde */
}


/* Cellestil */
.responsive-table th, .responsive-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    vertical-align: middle;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
}
/* Header-stil */
.responsive-table th {
    background-color: #5aa9e6; /* Blå bakgrunn */
    color: white; /* Hvit tekst */
    font-weight: bold;
    text-transform: uppercase; /* Store bokstaver */
    letter-spacing: 0.5px; /* Litt avstand mellom bokstavene */
}

/* Zebra-striping */
.responsive-table tr:nth-child(even) {
    background-color: #f8f9fa; /* Lys grå bakgrunn */
}

/* Hover-effekt */
.responsive-table tr:hover {
    background-color: #e0f0ff; /* Lys blå ved hover */
    cursor: pointer; /* Endrer til peker for interaktivitet */
}

/* Tom rad */
.responsive-table .no-data-row td {
    text-align: center;
    font-style: italic;
    color: #666;
    padding: 20px;
}

/* Knappene i tabellen */
.responsive-table .info-button,
.responsive-table .other-info-button {
    background-color: #5aa9e6;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.responsive-table .info-button:hover,
.responsive-table .other-info-button:hover {
    background-color: #005b99;
}

.responsive-table .info-button:active,
.responsive-table .other-info-button:active {
    background-color: #003f73;
    /* transform: scale(0.95); */
}

.responsive-table .row-checkbox, 
.responsive-table .info-button i {
    display: flex; /* Bruk flexbox for enkel sentrering */
    align-items: center; /* Vertikal midtstilling */
    justify-content: center; /* Horisontal midtstilling */
    margin: 0 auto; /* Sørg for at det holder seg sentrert */
}

/* Ikoner i knapper */
.responsive-table .info-button i,
.responsive-table .other-info-button i {
    font-size: 14px;
    color: white;
}

/* Stil for checkbox container */
.responsive-table .row-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 2px solid #5aa9e6;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Når checkbox er huket av */
.responsive-table .row-checkbox:checked {
    background-color: #3c8b09;
    border-color: #005b99;
}

/* Lag "hake"-ikon */
.responsive-table .row-checkbox:checked::after {
    content: '✓';
    font-size: 20px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Hover-effekt for checkbox */
.responsive-table .row-checkbox:hover {
    background-color: #09770e;
    border-color: #5aa9e6;
}

/* Fokusstil for bedre tilgjengelighet */
.responsive-table .row-checkbox:focus {
    outline: 2px solid #80d4ff;
    outline-offset: 2px;
}

/* Mobiltilpasning */
@media (max-width: 768px) {
    .responsive-table th,
    .responsive-table td {
        padding: 10px;
        font-size: 12px;
        white-space: normal; /* Tillat tekstbryting */
    }

    .responsive-table .info-button,
    .responsive-table .other-info-button {
        font-size: 10px;
        padding: 4px 8px;
    }

    .table-container {
        padding: 0px;
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    .responsive-table th,
    .responsive-table td {
        padding: 0px;
        font-size: 12px;
    }

    .responsive-table .info-button,
    .responsive-table .other-info-button {
        font-size: 9px;
        padding: 6px 10px;
    }

    .responsive-table .row-checkbox {
        width: 25px;
        height: 25px;
    }
}

/* === Form-seksjon === */
.form-section {
    margin: 0 auto;
}  

/* === Radiogruppe === */
.radio-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.radio-group label {
    font-size: 14px;
    color: #5aa9e6; /* Harmoniserer med nettstedets blåfarge */
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.radio-group label:hover {
    color: #005b99; /* Mørkere blå ved hover */
}

/* === Form-gruppe === */
.form-group {
    /* margin-bottom: 20px; */
    /* text-align: left; */
    /* flex-direction: column; */
    /* align-items: center; */
}
/* Justert label-stil med ny farge */
.form-group label {
    font-size: 16px;
    font-weight: bold;
    color: #5aa9e6; /* Endret til ønsket blåfarge */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}


/* === Input-felter === */
input[type="text"],
input[type="email"],
select {
    width: 90%;
    max-width: 500px;
    padding: 12px 15px;
    border: 2px solid #ccc; /* Nøytral farge */
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    margin-top: 5px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8f9fa; /* Lys bakgrunn */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05); /* Innvendig skygge */
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: #5aa9e6; /* Blå farge ved fokus */
    box-shadow: 0 0 8px rgba(0, 123, 204, 0.3); /* Blå glød */
    background-color: #ffffff; /* Hvit bakgrunn ved fokus */
}

/* Hover-effekt */
input[type="text"]:hover,
input[type="email"]:hover,
select:hover {
    border-color: #005b99;
}

/* === Tallinput === */
input[type="number"] {
    font-size: 16px;
    padding: 8px 12px;
    width: 100px;
    text-align: center;
    border: 2px solid #5aa9e6;
    border-radius: 8px;
    outline: none;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
}

input[type="number"]:focus {
    border-color: #005b99;
    box-shadow: 0 0 8px rgba(0, 123, 204, 0.3);
}

/* Generell styling */
.add-participants-wrapper {
    width: 100%;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.add-participants-section {
    margin-bottom: 20px;
}

.add-participants-title {
    font-size: 16px; /* Redusert litt */
    font-weight: bold;
    margin-bottom: 10px;
}

.add-participants-content {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Generell styling for input-felt */
.add-participants-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.2s ease;
}

.add-participants-input:focus {
    border-color: #5aa9e6;
    box-shadow: 0 0 5px rgba(90, 169, 230, 0.5);
}

/* Knappene er justert til høyre */
.add-participants-button-container {
    display: flex;
    justify-content: flex-end; /* Plasserer knappen til høyre */
    margin-top: 10px;
}

/* Pluss-knappen */
.add-participants-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; /* Større pluss-tegn */
    font-weight: bold;
    color: #ffffff;
    background-color: #497346;
    border: none;
    border-radius: 50%; /* Gjør den rund */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-participants-button:hover {
    background-color: #4a90d9;
}

/* Registrer-knappen */
.add-participants-submit {
    padding: 8px 12px;
    font-size: 13px; /* Redusert størrelse */
    font-weight: bold;
    color: #ffffff;
    background-color: #5aa9e6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-participants-submit:hover {
    background-color: #4a90d9;
}

/* 📱 Responsiv styling for små skjermer (mobil) */
@media (max-width: 768px) {
    .add-participants-wrapper {
        padding: 15px;
    }

    .add-participants-title {
        font-size: 20px; /* Litt mindre tittel */
    }

    .add-participants-content {
        padding: 10px; /* Mindre padding for kompakt visning */
    }

    .add-participants-button-container {
        margin-top: 5px; /* Mindre avstand */
    }

    .add-participants-button {
        width: 30px; /* Mindre pluss-knapp */
        height: 30px;
        font-size: 16px; /* Litt mindre ikon */
    }

    .add-participants-submit {
        padding: 6px 10px; /* Mindre padding */
        font-size: 12px; /* Litt mindre tekst */
    }

    /* 📌 Gjør input-feltene mer kompakte på små skjermer */
    .add-participants-input {
        padding: 8px;
        font-size: 12px; /* Litt mindre skrift */
        border-radius: 4px; /* Mindre avrunding */
    }
}



/* === Input-container === */
.input-container {
    text-align: center;
    margin-bottom: 20px;
}

/* === Input-kontroller === */
.input-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/*=================================
  8) FILTERFELT
=================================*/
#filterInput {
    width: 50%;
    margin-left: 25%;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #c6b4b40f;
    color: black;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#filterInput:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}


/* === Kort (resultater) === */
.results {
    display: flex;
    justify-content: space-between; /* Fordeler kortene jevnt */
    gap: 10px; /* Avstand mellom kortene */
    flex-wrap: nowrap; /* Hindrer bryting til neste rad */
}

.card {
    flex: 1 1 calc(33.33% - 10px); /* Alltid tre kort per rad */
    min-width: 0; /* Sørger for at kortene kan krympe hvis nødvendig */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #5aa9e6;
}

.card p {
    font-size: 14px;
    color: #666;
}

/* === Responsivitet for små skjermer === */
@media (max-width: 480px) {
    .results {
        gap: 5px; /* Mindre avstand mellom kortene på små skjermer */
        margin-bottom: 15px;
    }

    .card {
        padding: 10px; /* Juster padding for mindre kort */
        font-size: 12px; /* Mindre skriftstørrelse for små skjermer */
    }

    .card h3 {
        font-size: 22px;
        font-weight: 700;
    }

    .card p {
        font-size: 14px;
        font-weight: 600;
    }
}


/*=================================
  3) POPUP - Felles stil
=================================*/

.popup-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 800px;
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    max-height: 95vh;
}
 .popup-header {
    font-size: 18px;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 15px;
}

 .popup-buttons button {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

 .popup-buttons button:first-child {
    background-color: #007bff;
    color: white;
}

 .popup-buttons button:first-child:hover {
    background-color: #0056b3;
}

 .popup-buttons .popup-close {
    background-color: #dc3545;
    color: white;
}

 .popup-buttons .popup-close:hover {
    background-color: #bd2130;
}
/*=================================
  3a) REDIGERBAR POPUP (F.eks. kontaktform)
=================================*/
.editable-popup .popup-header {
    color: #333; /* Mørkere blå for redigerbare felter */
}

.editable-popup .popup-field input {
    background-color: #f8f9fa; /* Lys grå bakgrunn */
    font-weight: bold; /* Fremhevet tekst for redigerbare felter */
}

/*=================================
  3b) VISNINGSPOPUP (F.eks. info)
=================================*/
.view-only-popup .popup-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tre kolonner */
    gap: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.view-only-popup .popup-section-item {
    text-align: center;
    padding: 10px;
    background-color: #ffffff; /* Hvit bakgrunn */
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-only-popup .popup-section-item label {
    color: #5aa9e6; /* Blå etikett */
    font-weight: bold;
    text-transform: uppercase;
}

.view-only-popup .popup-section-item span {
    font-size: 14px;
    font-weight: normal;
    color: #333;
}

/* Responsiv justering */
@media (max-width: 768px) {
    .view-only-popup .popup-section {
        grid-template-columns: repeat(2, 1fr); /* To kolonner på nettbrett */
    }
}

@media (max-width: 480px) {
    .view-only-popup .popup-section {
        grid-template-columns: 1fr; /* Én kolonne på mobil */
    }
}

/*=================================
  10) OTHER-INFO POPUP - Kortvisning
=================================*/

/* Popup-row */
.other-info-popup-row {
    background-color: #ffffff; /* Hvit bakgrunn */
    color: #333; /* Mørk tekst */
    padding: 15px;
    border-radius: 8px; /* Runde hjørner */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Lett skygge */
    overflow: hidden;
    width: 100%; /* Bruk hele bredden */
}

/* Popup container */
.other-info-popup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Mindre gap */
    width: 100%; /* Bruk hele bredden */
    margin: 0; /* Fjern margin for sentrering */
    padding: 20px;
    background-color: #f8f9fa; /* Lys grå bakgrunn */
    border-radius: 0; /* Fjern runde hjørner */
    color: #333; /* Mørk tekst */
    box-shadow: none; /* Fjern skygge */
}

/* Seksjoner */
.other-info-section {
    display: grid; /* Bruk grid-layout */
    grid-template-columns: 1fr; /* En kolonne */
    gap: 20px; /* Avstand mellom seksjoner */
    background-color: #ffffff; /* Hvit bakgrunn */
    padding: 15px;
    border-radius: 8px; /* Runde hjørner */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Lett innvendig skygge */
    margin-bottom: 15px;
    text-align: left; /* Venstrejustert tekst */
}


/* Seksjonstittel */
.other-info-section h4 {
    font-size: 16px; /* Mindre størrelse */
    color: #5aa9e6; /* Blå tekst */
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd; /* Diskré linje */
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Elementer i seksjonen */
.other-info-section-item {
    display: flex;
    flex-direction: column; /* Vertikal plassering */
    gap: 10px; /* Avstand mellom elementer */
    text-align: center;
    background-color: #f8f9fa; /* Lys grå bakgrunn */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Lett skygge */
}

.other-info-section-item label {
    font-size: 14px; /* Mindre tekst */
    color: #5aa9e6; /* Blå etikett */
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.other-info-section-item span {
    font-size: 16px; /* Større og tydeligere tekst */
    color: #333; /* Mørk tekst */
    font-weight: normal;
}

/* Telefon og E-post plassert sammen */
.other-info-contact {
    display: flex;
    flex-direction: row; /* Plassering i linje */
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
}

.other-info-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Lett skygge */
    text-align: center;
}

.other-info-contact-item span {
    font-size: 14px;
    color: #333;
}

/* Knappene */
.other-info-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Mer avstand */
    margin-top: 20px;
}

.other-info-popup-buttons button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: white; /* Hvit tekst */
    background-color: #5aa9e6; /* Blå bakgrunn */
    border: none;
    border-radius: 5px; /* Runde hjørner */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Lett skygge */
}

.other-info-popup-buttons button:hover {
    background-color: #005b99; /* Mørkere blå ved hover */
}

.other-info-popup-buttons button:active {
    background-color: #003f7f; /* Enda mørkere blå ved klikk */
    /* transform: scale(0.95); */
}

/* Responsiv justering */
@media (max-width: 768px) {
    .other-info-popup {
        padding: 15px;
        width: 100%; /* Bruk hele skjermbredden */
    }

    .other-info-section {
        grid-template-columns: 1fr; /* En kolonne for nettbrett */
    }
}

@media (max-width: 480px) {
    .other-info-popup {
        padding: 10px;
        width: 100%; /* Bruk hele skjermbredden */
    }

    .other-info-section h4 {
        font-size: 14px; /* Mindre overskrift */
    }

    .other-info-contact-item span {
        font-size: 12px; /* Mindre tekst */
    }

    .other-info-popup-buttons button {
        font-size: 12px; /* Mindre knappetekst */
        padding: 8px 15px;
    }
}

.popup-item {
    display: flex;
    flex-direction: row; /* Sett etikett og verdi på samme linje */
    gap: 10px; /* Avstand mellom etikett og verdi */
    padding: 8px 0; /* Vertikal padding for hvert felt */
    text-align: left;
}

.popup-item label {
    font-size: 14px;
    font-weight: bold; /* Fet skrift på etikett */
    color: #5aa9e6; /* Blå tekst */
}

.popup-item span {
    font-size: 14px;
    font-weight: bold; /* Fet tekst for verdien */
    color: #333; /* Mørk tekst for verdien */
}

/*=================================
  7) 3x1 LAYOUT FOR KNAPPER
=================================*/
.button-container {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    margin-bottom: 17px;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 80px;
    background-color: #5aa9e6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-action i {
    font-size: 24px;
    margin-bottom: 5px;
}

.btn-action:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.btn-action:active {
    background-color: #003f7f;
    transform: scale(0.95);
}

/* Responsiv justering for knappestørrelse */
@media (max-width: 700px) {
    .btn-action {
        width: 100px; /* Redusert med 10% */
        height: 80px; /* Redusert med 10% */
        font-size: 12.6px; /* Redusert med 10% */
    }
    .btn-action i {
        font-size: 40px; /* Redusert med 10% */
    }
}

@media (max-width: 400px) {
    .btn-action {
        width: 80px; /* Redusert ytterligere med 10% */
        height: 60px; /* Redusert ytterligere med 10% */
        font-size: 11.34px; /* Redusert ytterligere med 10% */
    }
    .btn-action i {
        font-size: 19.44px; /* Redusert ytterligere med 10% */
    }
}
/*=================================
  9) VELG ALLE-KNAPPEN
=================================*/
#selectAllButton {
    background-color: #5aa9e6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#selectAllButton:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#selectAllButton:active {
    background-color: #003f7f;
    transform: scale(0.98);
}


/*=================================
    Vipps-knapp
=================================*/
/* Vipps button styling */
    .vipps-button {
        display: inline-block;
        background-color: #ff5b24;
        color: #fff;
        text-decoration: none;
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: bold;
        transition: background-color 0.3s ease, transform 0.2s ease;
        margin-top: 10px;
    }

    .vipps-button:hover {
        background-color: #e04e20;
        transform: scale(1.05);
    }

/* === Tilpasset stil for dugnadskategori-layout === */
.dugnad-content-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* To kolonner */
    gap: 20px; /* Avstand mellom knapper */
    max-width: 1000px;
    margin: 30px auto;
    padding: 10px;
    justify-items: center; /* Sentraliserer knappene horisontalt */
}

/* === Tilpasset stil for dugnadskategoriknapper === */
.dugnad-category-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #1b4965;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    cursor: pointer;
    position: relative;
    width: 100%; /* Sørger for lik størrelse */
    max-width: 300px; /* Begrens bredde */
    height: 200px; /* Fast høyde */
    transition: transform 0.2s, box-shadow 0.2s;
}

.dugnad-category-button i {
    font-size: 4.5rem;
    color: #ffffff;
    margin-top: 0px;
    margin-bottom: 10px;
    padding: 0px;
}

.dugnad-category-button h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0px 0;
    font-weight: bold;
}

.dugnad-category-button p {
    font-size: 1rem;
    color: #e0e0e0;
    margin: 0;
    text-align: center;
    overflow: hidden; /* Hindrer tekst som strekker seg utover */
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hover-effekt */
.dugnad-category-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* === Tilpasset stil for inaktive dugnadskategoriknapper === */
.dugnad-category-button.inactive {
    background: #cccccc; /* Grå bakgrunn */
    cursor: not-allowed;
}

.dugnad-category-button.inactive i {
    color: #666666; /* Grå ikonfarge */
}

.dugnad-category-button.inactive h3,
.dugnad-category-button.inactive p {
    color: #999999; /* Lys grå tekst */
}

/* "Kommer snart"-banner */
.dugnad-coming-soon-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #333333; /* Mørk bakgrunn */
    color: #ffffff; /* Hvit tekst */
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 5px;
    transform: rotate(10deg); /* Liten rotasjon for stil */
    z-index: 10;
    text-transform: uppercase;
    font-weight: bold;
}

/* Responsiv justering */
@media (max-width: 768px) {
    .dugnad-content-container {
        grid-template-columns: repeat(2, 1fr); /* To kolonner på mindre skjermer */
        gap: 15px;
    }

    .dugnad-category-button {
        height: 180px; /* Mindre høyde */
    }

    .dugnad-category-button i {
        font-size: 4.5rem; /* Mindre ikon */
    }

    .dugnad-category-button h3 {
        font-size: 20px; /* Mindre overskrift */
    }

    .dugnad-category-button p {
        font-size: 0.9rem; /* Mindre tekst */
    }
}

@media (max-width: 480px) {
    .dugnad-content-container {
        grid-template-columns: 1fr; /* Én kolonne på mobil */
    }

    .dugnad-category-button {
        height: 160px; /* Juster høyden for små skjermer */
    }

    .dugnad-category-button i {
        font-size: 4rem; /* Mindre ikon */
    }

    .dugnad-category-button h3 {
        font-size: 20px; /* Mindre overskrift */
    }

    .dugnad-category-button p {
        font-size: 13px; /* Mindre tekst */
    }
}

/* === Dashboard-spesifikke stiler === */


/* Knapper */

 .btn-primary:hover {
    background: linear-gradient(145deg, #0056b3, #003f7f);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

 .btn-primary:active {
    transform: scale(0.95);
}

/* Grid layout */
 .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Dynamisk tilpasning */
    gap: 20px;
    margin: 20px 0;
}

/* Fliser */
.tile {
    background: linear-gradient(145deg, #e6e6e6, #f5f5f5);
    color: #333;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Tile ikon */
 .tile .tile-icon {
    font-size: 30px;
    color: #1b4965;
    margin-bottom: 10px;
}

 .tile .tile-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

 .tile .tile-highlight {
    font-size: 17px;
    font-weight: bold;
    color: #000000; /* Grønn for positiv informasjon */
}


.button-container.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* To kolonner */
    gap: 15px; /* Avstand mellom knappene */
    max-width: 500px; /* Sentraliserer og sikrer god layout */
    margin: 20px auto;
    justify-items: center;
}

.button-container.two-column .btn-primary {
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 8px;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Dynamisk tilpasning */
    gap: 10px;
    margin: 20px auto;
    width: 100%;
    max-width: 1200px; /* Sikrer at det ikke går utenfor brede skjermer */
    box-sizing: border-box;
}

.tile {
    background: linear-gradient(145deg, #e6e6e6, #f5f5f5);
    color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Dynamisk tilpasning */
    gap: 10px;
    margin: 20px auto;
    width: 100%;
    max-width: 1200px; /* Sikrer at det ikke går utenfor brede skjermer */
    box-sizing: border-box;
}

.tile {
    background: #1b4965;
    color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.button-container.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* To kolonner */
    gap: 12px; /* Avstand mellom knappene */
    max-width: 460px; /* Begrens bredden */
    margin: 20px auto; /* Sentrerer hele containeren horisontalt */
    justify-items: center; /* Midtstiller knappene horisontalt i hver celle */
    align-items: center; /* Midtstiller knappene vertikalt i hver celle */
}
.button-container.two-column .btn-primary {
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 8px;
}
input[type="password"], input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 6px 7px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    margin-top: 5px;
    margin-bottom: 5px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

input[type="password"]:focus,
input[type="text"]:focus {
    border-color: #5aa9e6; /* Blå kant ved fokus */
    box-shadow: 0 0 8px rgba(90, 169, 230, 0.3); /* Myk blå glød */
    background-color: #ffffff; /* Hvit bakgrunn ved fokus */
}

input[type="password"]:hover,
input[type="text"]:hover {
    border-color: #005b99; /* Mørkere blå ved hover */
}

.remove-participant.btn-delete {
    background-color: #9d1515;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    padding: 3px 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

* {
    box-sizing: border-box; /* Inkluder padding og border i elementets totale bredde og høyde */
    margin: 0; /* Fjern standard margin */
    padding: 0; /* Fjern standard padding */
}
/* Info-boks styling */
.info-box {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 75%;
    height: auto;
    position: fixed;
    padding-top: 30px;
    margin-top: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
    text-align: center;
}

/* Karusell-container */
.carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin: 10px auto;
}

/* Bilder i karusellen */
.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 100%;
    max-width: 400px;
    display: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Karusell-knapper */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fafafa;
    font-size: 20px;
}

.fa-info-circle:before {
    color: white;
}
.button-wrapper {
    margin: 0 auto;
    margin-top: 20px;
}

/* === Start Setup Button === */
.setup_install-btn-start-setup {
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 7px 13px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    opacity: 0.5;
    margin-left: 0px;
}

.setup_install-btn-start-setup:hover {
    background-color: #0055a2; /* Darker color on hover */
    opacity: 1; /* Full opacity on hover */
}

.setup_install-btn-start-setup:active {
    transform: translateY(1px); /* Button press effect */
}

/* === Toggle Button === */
.btn-toggle {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-toggle:hover {
    color: #003366;
    transform: scale(1.1);
}
#onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 998;
}

.highlight-glow {
    position: relative;
    z-index: 999;
    box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.8);
    border-radius: 10px;
    animation: glow-pulse 1.5s infinite alternate;
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 10px 3px rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 0 20px 6px rgba(255, 215, 0, 1); }
}

#onboarding-info-box {
    position: fixed;
    top: 27%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    z-index: 999;
}

.dismiss-button {
    position: fixed;
    top: 16%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffcc00;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
}

.dismiss-button:hover {
    background: #e6b800;
}
#onboarding-info-box.alt-position {
    top: 70%; /* Senker plasseringen */
}

.dismiss-button {
    position: fixed;
    top: 16%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffcc00;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
}

/* Alternativ plassering for "Forstått"-knappen i siste tre steg */
.dismiss-button.alt-position {
    top: 85%; /* Senker plasseringen */
}
.skip-button {
    position: fixed;
    top: 92%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff4d4d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    z-index: 1001;
}

.skip-button:hover {
    background: #cc0000;
}
