* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #002b36;
    color: #839496;
    font-family: 'Ubuntu Mono', monospace;
    height: 100vh;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* Start screen */
#start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 2rem;
}

#start-screen h1 {
    color: #93a1a1;
    font-size: 2.5rem;
}

.config-section {
    text-align: center;
}

.config-section label {
    display: block;
    color: #586e75;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.config-section input {
    background: #073642;
    border: 1px solid #586e75;
    color: #93a1a1;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    width: 300px;
    text-align: center;
}

.config-section input:focus {
    outline: none;
    border-color: #268bd2;
}

#tag-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.tag-preset {
    background: #073642;
    border: 1px solid #586e75;
    color: #839496;
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.tag-preset:hover {
    background: #586e75;
    color: #fdf6e3;
}

.tag-preset.active {
    background: #268bd2;
    border-color: #268bd2;
    color: #fdf6e3;
}

.hint {
    color: #586e75;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

#class-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.class-btn {
    background: #073642;
    border: 1px solid #586e75;
    color: #93a1a1;
    font-family: inherit;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.class-btn:hover {
    background: #586e75;
    color: #fdf6e3;
}

#image-count {
    color: #586e75;
    font-size: 0.9rem;
}

/* Session screen */
#session-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #000;
}

#pose-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#break-overlay {
    position: absolute;
    inset: 0;
    background: #002b36;
    display: flex;
    align-items: center;
    justify-content: center;
}

#break-overlay span {
    font-size: 3rem;
    color: #586e75;
}

#memory-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#memory-overlay span {
    font-size: 2rem;
    color: #586e75;
}

#controls {
    background: #073642;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
}

#timer-bar-container {
    height: 4px;
    background: #002b36;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#timer-bar {
    height: 100%;
    background: #268bd2;
    width: 100%;
    transition: width 0.1s linear;
}

#info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

#segment-label {
    color: #586e75;
}

#timer-display {
    color: #93a1a1;
    font-size: 1.4rem;
    font-weight: bold;
}

#pose-counter {
    color: #586e75;
}

#button-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

#button-row button {
    background: #002b36;
    border: 1px solid #586e75;
    color: #839496;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

#button-row button:hover {
    background: #586e75;
    color: #fdf6e3;
}

/* Timer turns red in last 5 seconds */
#timer-display.warning {
    color: #dc322f;
}

#timer-bar.warning {
    background: #dc322f;
}

/* Done screen */
#done-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 1.5rem;
}

#done-screen h1 {
    color: #93a1a1;
    font-size: 2rem;
}

#session-summary {
    color: #586e75;
    font-size: 1.1rem;
}

#restart-btn {
    background: #073642;
    border: 1px solid #586e75;
    color: #93a1a1;
    font-family: inherit;
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
}

#restart-btn:hover {
    background: #586e75;
    color: #fdf6e3;
}
