/* EXAMSAVVY EXAMINATION TIME PLANNER V1 */

.es-time-planner {
    margin: 24px 0;
    min-width: 0;
}

.es-time-modes {
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.es-time-modes label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.es-time-modes input {
    accent-color: #0879a9;
}

.es-time-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px;
    margin: 14px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.es-time-control label {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.es-time-control output {
    color: #0879a9;
    font-weight: 600;
}

.es-time-control input[type="range"] {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    accent-color: #0879a9;
}

.es-time-control small {
    grid-column: 1 / -1;
    color: #475569;
}

.es-time-control:has(input:disabled) {
    opacity: 0.75;
}

.es-time-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.es-time-bar {
    display: flex;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    margin: 16px 0;
}

.es-time-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.es-time-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.es-time-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.es-time-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.es-time-warning {
    color: #92400e;
    font-weight: 600;
}

@media (max-width: 480px) {

    .es-time-control {
        padding: 12px;
    }

    .es-time-legend {
        grid-template-columns: 1fr;
    }

    .es-time-actions button {
        width: 100%;
    }

}
