﻿.collapsible {
    display: block !important;
    overflow: hidden;
    max-height: 600px;
    opacity: 1;
    transition: max-height 1.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.5s ease-in-out;
}

.collapsible.collapsed {
        max-height: 0 !important;
        opacity: 0;
        pointer-events: none;
    }

.triangle {
    display: inline-block;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.triangle.open {
        transform: rotate(90deg);
    }

/* Status-ikoner og tællere */
.status-icon {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #7f8c8d;
}

.status-circle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid #7f8c8d;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    color: #7f8c8d;
    line-height: 1;
    cursor: help;
}

.status-text {
    font-family: monospace;
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Progress Bar */
.progress-bar-wrapper {
    width: 100%;
    height: 12px;
    background-color: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4CAF50;
    background-image: linear-gradient(to right, #4CAF50 0%, #4CAF50 calc(100% - 15px), rgba(76, 175, 80, 0) 100%);
    transition: width 0.5s ease-in-out;
}

/* components.css */
.header-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    width: 100%; /* Sikrer den fylder bredden */
}

.header-status-area {
    margin-left: auto; /* Dette skubber ikonerne helt til højre */
    display: flex;
    align-items: center;
    gap: 12px;
}

/* components.css */

.progress-container {
    width: 100px; /* Sikrer synlighed i headeren */
    margin: 20px 0;
    font-family: sans-serif;
}

.progress-bar-wrapper {
    width: 100%;
    height: 12px;
    background-color: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4CAF50;
    background-image: linear-gradient(to right, #4CAF50 0%, #4CAF50 calc(100% - 15px), rgba(76, 175, 80, 0) 100%);
    transition: width 0.5s ease-in-out;
}

.section-header {
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0;
    /* font-family: 'Inter', sans-serif; Sikrer den korrekte font-familie fra index.htm */
    color: var(--primary); /* Benytter variablen fra base.css */
}

.checkbox-item {
    display: flex;
    justify-content: space-between; /* Skubber indhold til hver sin side */
    align-items: center;
    padding: 10px 0;
    width: 100%; /* Sikrer at containeren fylder hele bredden */
    border-bottom: 1px solid #eee; /* Minimalistisk adskillelse */
}

    /* Skarp geometri for checkboxen jf. dit ønske */
.checkbox-item input[type="checkbox"] {
        cursor: pointer;
        width: 18px;
        height: 18px;
        accent-color: #a8b5a2; /* Bruger din tema-grønne farve */
    }

/* Containeren der holder styr på rækken */
.checkbox-summary {
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none; /* Skjuler standard trekant i nogle browsere */
    padding: 10px 0;
    font-size: 0.8rem !important;
    text-transform: none !important;
    font-family: 'Lato', sans-serif!important;
}

    /* Bruger en custom trekant for fuld kontrol over designet */
    .checkbox-summary::-webkit-details-marker {
        display: none; /* Skjuler standard trekant i Chrome/Safari */
    }

    .checkbox-summary::before {
        content: '▶';
        font-size: 0.7rem;
        margin-right: 10px;
        transition: transform 0.4s ease; /* Refleksiv bevægelse */

    }

.checkbox-details[open] .checkbox-summary::before {
    transform: rotate(90deg);
}

.checkbox-label {
    flex-grow: 1; /* Tvinger teksten til at fylde pladsen ud til checkboksen */
}

/* Selve beskrivelsen der foldes ud */
.checkbox-description {
    padding: 0px 0 0px 0px;
    font-size: 0.8rem;
    line-height: 1.4;
    border-left: 1px solid #000; /* Skarp vertikal linje for visuel hierarki */
    margin-bottom: 10px;
}

.checkbox-item-wrapper {
    border-bottom: 1px solid #eee;
}

.greeting {
    margin-top: 30px
}

#fileList{
    margin-bottom: 5px;
}

.fileList {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#zero_shot_in_file-promptreply-textarea, #zeroshot-promptreply-textarea {
    height: 400px; /* Fast højde - kan evt. erstattes af max-height: 400px */
    overflow-y: auto;
    box-sizing: border-box;
    background-color: var(--surface-background, #ffffff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    padding: 20px;
    scroll-behavior: smooth;
}