/* Tööjaamad - põhistiilid */
body { padding-top: 0; }

/* ==========================================
   INDEX - VORM
   ========================================== */
@media (max-width: 768px) {
    .custom-flex { flex-direction: column; }
}

/* ==========================================
   TAIMER
   ========================================== */
.timer-box {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.timer-box .time-display {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    font-family: 'Courier New', monospace;
    line-height: 1.1;
    transition: color 0.3s;
}
.timer-box .time-display.is-danger {
    color: #f14668 !important;
}
/* Progressipunktid */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dbdbdb;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}
.progress-dot.is-current {
    background-color: #3298dc;
    transform: scale(1.3);
}
.progress-dot.is-completed {
    background-color: #48c774;
}
[data-theme="dark"] .progress-dot {
    background-color: #4a4a4a;
}
[data-theme="dark"] .progress-dot.is-current {
    background-color: #3298dc;
}
[data-theme="dark"] .progress-dot.is-completed {
    background-color: #48c774;
}

.time-editor {
    margin: 0.5rem 0;
}
.time-editor .input {
    font-size: 1.1rem;
}
.timer-controls .button {
    min-width: 90px;
}
.timer-controls .button.is-icon-only {
    min-width: 0;
    padding-left: 0.75em;
    padding-right: 0.75em;
}
@media (max-width: 480px) {
    .timer-controls .button {
        min-width: 70px;
    }
    .timer-controls .button span:not(.icon) {
        display: none;
    }
}

/* ==========================================
   TÖÖJAAMADE KASTID
   ========================================== */
.station-box {
    min-height: 130px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    position: relative;
}
.station-title {
    margin-bottom: 1.2rem !important;
    font-size: 1.1rem !important;
}
.station-description {
    font-size: 0.82rem;
    color: #7a7a7a;
    font-style: italic;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
[data-theme="dark"] .station-description {
    color: #aaa;
}
.station-group-label {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}
/* Grupi värvid */
.group-tag { cursor: pointer; }
.group-tag.group-color-0 { background-color: #3298dc !important; color: #fff !important; }
.group-tag.group-color-1 { background-color: #48c774 !important; color: #fff !important; }
.group-tag.group-color-2 { background-color: #ffdd57 !important; color: #363636 !important; }
.group-tag.group-color-3 { background-color: #f14668 !important; color: #fff !important; }
.group-tag.group-color-4 { background-color: #b86bff !important; color: #fff !important; }
.group-tag.group-color-5 { background-color: #ff8c42 !important; color: #fff !important; }
.group-tag.group-color-6 { background-color: #00d1b2 !important; color: #fff !important; }
.group-tag.group-color-7 { background-color: #e84393 !important; color: #fff !important; }
.group-tag.group-color-8 { background-color: #636e72 !important; color: #fff !important; }
.group-tag.group-color-9 { background-color: #0984e3 !important; color: #fff !important; }

.station-name-text {
    cursor: pointer;
}
.group-tag[contenteditable="true"],
.station-name-text[contenteditable="true"] {
    outline: 2px solid #00d1b2;
    outline-offset: 1px;
    border-radius: 4px;
    min-width: 3em;
}
.station-members {
    min-height: 2em;
}
.station-members .names-list {
    padding: 0.3rem 0rem;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.station-members .names-list:hover {
    background-color: rgba(0, 0, 0, 0.03);
}
.station-members .names-list .member-name {
    flex: 1;
    min-width: 0;
}
.station-members .names-list .remove-member {
    display: none;
    background: none;
    border: none;
    color: #f14668;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0 0.2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 0.25rem;
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.station-members .names-list:hover .remove-member {
    display: inline-block;
}
.station-members .names-list .remove-member:hover {
    opacity: 1;
    background-color: rgba(241, 70, 104, 0.1);
}

/* Drag and drop */
.station-box.drag-over {
    background-color: rgba(0, 209, 178, 0.08);
    border-color: #00d1b2;
}
.names-list.draggable {
    cursor: grab;
}
.names-list.draggable:active {
    cursor: grabbing;
    opacity: 0.7;
}

/* ==========================================
   LÕPETAMISE TEADE
   ========================================== */
#completedBanner {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   TOAST TEATED
   ========================================== */
/* Toast stiilid on globaalses css/style.css failis */

/* ==========================================
   TÄISEKRAAN
   ========================================== */
html:fullscreen,
html:fullscreen body {
    overflow: hidden;
    height: 100vh;
}
body.is-fullscreen {
    overflow: hidden;
    height: 100vh;
}
body.is-fullscreen .section {
    padding-top: 3.5rem!important;
    padding-bottom: 0.5rem;
    overflow: hidden;
}
body.is-fullscreen .timer-box {
    max-width: 100%;
    box-shadow: none;
    border: none;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-align: center;
}
body.is-fullscreen .timer-box .timer-header {
    margin-bottom: 0 !important;
}
body.is-fullscreen .timer-box .time-display {
    font-size: clamp(2rem, 8vw, 5.5rem);
    margin: 0;
}
body.is-fullscreen .timer-box .timer-controls {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
body.is-fullscreen .timer-box .timer-controls .button {
    min-width: 0;
}
body.is-fullscreen .station-members .names-list {
    padding: 0.2rem 0rem;
    font-size: 1.05rem;
}
body.is-fullscreen #completedBanner {
    margin-bottom: 0.5rem !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .station-column {
        width: 50% !important;
        flex: none !important;
    }
}
@media (max-width: 480px) {
    .station-column {
        width: 100% !important;
    }
}
