/* Tabs styling */
.tabs-section {
    padding: 0 0 2rem 0;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0 1rem 2rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px 5px 0 0;
}

.tab-btn:hover {
    background-color: var(--light-gray);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* Kategori og mål styling */
.kategori-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 1rem 2rem;
}

.kategori {
    margin-bottom: 2rem;
}

.kategori h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: left;
}

.mål-liste {
    list-style: none;
    padding: 0;
}

.mål-tabell {
    width: 100%;
    border-collapse: collapse;
}

.mål-tabell th,
.mål-tabell td {
    padding: 1rem 1.5rem;
    text-align: left;
    border: none;
}

.mål-tabell th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    padding-left: 2rem;
}

.mål-tabell tr:last-child td {
    border-bottom: none;
}

/* Kategori farger */
.kategori-celle {
    font-weight: 600;
    vertical-align: top;
    width: 200px;
    text-align: left;
    border-right: none;
    padding: 1.5rem 2rem;
    background-color: rgba(41, 128, 185, 0.15);
    color: var(--primary-color);
}

.mål-tittel {
    font-weight: 500;
    width: 250px;
}

.mål-beskrivelse {
    color: var(--text-color);
    opacity: 0.8;
    width: calc(100% - 200px);
    transition: transform 0.2s ease, color 0.2s ease;
    background-color: var(--white);
}

/* Hover effekt */
.mål-tabell tr {
    transition: color 0.2s ease;
}

.mål-tabell tr:hover {
    cursor: pointer;
}

.mål-tabell tr:hover .mål-beskrivelse {
    transform: scale(1.01);
    color: var(--primary-color);
    opacity: 1;
}

/* Kategori skillelinjer */
.kategori-1:last-child td,
.kategori-2:first-child td,
.kategori-2:last-child td,
.kategori-3:first-child td,
.kategori-3:last-child td,
.kategori-4:first-child td,
.kategori-4:last-child td,
.kategori-5:first-child td {
    border-bottom: 2px solid var(--light-gray);
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 2% auto;
    padding: 2rem;
    width: 95%;
    max-width: 1200px;
    border-radius: var(--border-radius);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.modal-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-right: 3rem;
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 600;
}

.modal-sections {
    display: grid;
    gap: 1.5rem;
}

.modal-section h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.modal-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.3em;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-content {
    background-color: var(--light-gray);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    line-height: 1.5;
}

.section-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.section-content li {
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
}

.section-content li:last-child {
    margin-bottom: 0;
}

.section-content li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Tab content */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Responsivt design */
@media (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        width: calc(50% - 0.5rem);
        text-align: center;
    }

    .modal-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .modal-sections {
        gap: 2rem;
    }

    .modal-section h3 {
        font-size: 1.2rem;
    }

    .section-content {
        padding: 1.2rem;
    }

    .mål-tabell {
        display: block;
        overflow-x: auto;
    }

    .mål-tabell th,
    .mål-tabell td {
        padding: 0.8rem 1rem;
    }
}

/* Årstrinn overskrift */
.årstrinn-overskrift {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 600;
    text-align: left;
    padding: 0.5rem;
}

/* Fjerner de gamle kategori-fargene */
.kategori-1, .kategori-2, .kategori-3, .kategori-4, .kategori-5 {
    background-color: transparent;
} 