@charset "utf-8";
/* CSS Document */

.interval_modal {
    background: white;
    padding: 0;
    margin: 0 auto;
    position: relative;
}

.interval-titel {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.interval-content {
    display: flex;
    gap: 35px;
    align-items: flex-start;
    width: 783px;
    margin: 30px auto 0 auto;
    padding-top: 0px;
    border-top: 1px solid #000;
    position: relative;
    left: 10.5px;
    font-family: "Arial Narrow", Arial, Sans-Serif;
}

.interval-left {
    width: 381px;
    flex: 0 0 381px;
}

.interval-right {
    width: 381px;
    flex: 0 0 381px;
}

.interval-left h3,
.interval-right h3 {
    color: #000;
    margin-bottom: 25px;
    font-size: 32px;
    font-family: "Arial Narrow", Arial, Sans-Serif;
    font-weight: bold;
    text-align: left;
}

/* Linke Seite - Tabellen */
.values-table,
.interval-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    margin-top: 40px;
}

.values-table th,
.values-table td,
.interval-table th,
.interval-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.values-table th,
.interval-table th {
    background-color: #dcdcdc;
    font-weight: bold;
    width: 60px;
}

.values-table th:first-child,
.interval-table th:first-child {
    background-color: #fff;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    width: 140px;
    text-align: left;
}

.values-table td:first-child {
    background-color: #efefef;
    text-align: left;
    font-weight: 500;
}

.interval-table td:first-child {
    background-color: #c5d7ea;
    text-align: left;
    font-weight: 500;
}

.cumulative-row {
    border-top: 2px solid #333;
}

.cumulative-cell {
    background-color: #99ff99;
    font-weight: bold;
}

/* Highlighting für Tabellen - Erweitert */
.month-cell.highlighted {
    background-color: #ffff05 !important;
    /* Gelb für vorgeschlagenes Intervall */
    font-weight: bold;
}

.interval-table td.highlighted {
    background-color: #99ff99 !important;
    /* Hellgrün für zutreffende Werte */
    font-weight: bold;
}

.interval-table td.critical {
    background-color: #ffcccc !important;
    /* Hellrot für kritische Spalten */
    font-weight: bold;
}

/* Standardfarbe für Monats-Spalte */
.interval-table td:first-child {
    background-color: #c5d7ea;
    /* Hellblau für Monats-Spalte */
    text-align: left;
    font-weight: 500;
}

/* Stelle sicher, dass highlighted Monats-Zellen gelb bleiben */
.interval-table td:first-child.highlighted {
    background-color: #ffff05 !important;
    /* Gelb überschreibt Hellblau */
}

/* Rechte Seite - Chart */
.interval-chart-container {
    width: 100%;
    height: 180px;
    background: white;
    overflow: hidden;
}

.risk-factors {
    display: flex;
    gap: 35px;
    justify-content: flex-start;
    margin-bottom: 35px;
    background: #f8fafc;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    width: fit-content;
}

.risk-factors label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-family: "Arial Narrow", Arial, Sans-Serif;
    font-weight: 800;
    cursor: pointer;
    color: #1e293b;
    transition: color 0.2s ease;
}

.risk-factors input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border: 3px solid #1e293b;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.risk-factors input[type="checkbox"]:checked {
    background-color: #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.risk-factors input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 8px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(-45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46);
    opacity: 0;
}

.risk-factors input[type="checkbox"]:checked::after {
    transform: translate(-50%, -60%) rotate(-45deg) scale(1.1);
    opacity: 1;
}

.risk-factors label:hover {
    color: #475569;
}

/* Interval Selection */
.interval-selection {
    position: relative;
    margin-bottom: 50px;
}

.month-boxes {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 30px;
    font-family: "Arial Narrow", Arial, Sans-Serif;
    font-size: 20px;
    font-weight: bold;
}

.month-box {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
}

.month-box.recommended {
    border: 2px solid #000;
    background-color: #fff;
    text-align: center;
}

.month-box.suggested {
    background-color: #f0f0f0;
    border: 2px solid #CCC;
    text-align: center;
}

.month-label {
    font-weight: bold;
    margin-left: 10px;
}

.arrows-container {
    position: relative;
    height: 30px;
    margin: 10px 0;
}

.arrow {
    position: absolute;
    font-size: 24px;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
}

.arrow.bop-arrow {
    color: #d32f2f;
}

.arrow.rf-arrow {
    color: #1976d2;
}

/* Selected Interval */
.selected-interval {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    font-family: "Arial Narrow", Arial, Sans-Serif;
    font-size: 24px;
    font-weight: bold;
}

.selected-interval input {
    width: 80px;
    height: 40px;
    border: 1px solid #ccc;
    background-color: #f0f7fd;
    text-align: center;
    font-size: 24px;
    font-family: "Arial Narrow", Arial, Sans-Serif;
}

/* Download Area */
.interval_download_area {
    position: relative;
}

.interval_download_area.download-active-border {
    border: 3px dashed #007bff;
    border-radius: 8px;
}

/* Animations */
@keyframes highlight {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: #fff200;
    }

    100% {
        background-color: transparent;
    }
}

.animate-highlight {
    animation: highlight 1s ease-in-out;
}

.interval-modal-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}