:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --tally-idle: #333333;
    --tally-active: #ff0000; /* On Air Red */
    --tally-ready: #00ff00;  /* Ready Green */
    --font-mono: 'Roboto Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    overflow-x: hidden;
    overflow-y: auto; /* Enable scrolling for SEO text below */
    width: 100vw;
}

.clock-container {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Changed to min-height so content can push if needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5vh;
}

.tally-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px; /* Thin line by default */
    background-color: var(--tally-idle);
    transition: all 0.3s ease;
}

.tally-bar.active {
    background-color: var(--tally-active);
    height: 30px;
    box-shadow: 0 0 30px var(--tally-active);
}

.tally-bar.ready {
    background-color: var(--tally-ready);
    height: 30px;
    box-shadow: 0 0 30px var(--tally-ready);
}

.time-block {
    text-align: center;
    width: 100%;
    margin: 2vh 0;
}

.tod-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.countdown-block {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.time-label {
    font-size: clamp(1rem, 3vw, 2rem);
    letter-spacing: 0.5em;
    color: #888;
    margin-bottom: 10px;
}

.time-display {
    font-size: clamp(4rem, 15vw, 15rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums; /* Keeps numbers from shifting widths */
}

.countdown-block.negative .time-display {
    color: var(--tally-active);
}

.countdown-block.zero .time-display {
    color: var(--tally-ready);
}

/* Settings Overlay */
.settings-overlay {
    position: absolute;
    bottom: -400px; /* Hide deeper */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: 30px;
}

.clock-container:hover .settings-overlay {
    bottom: 0;
}

.settings-panel {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column; /* Vertical layout */
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.settings-panel h2 {
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group.row {
    flex-direction: row;
    gap: 12px;
    margin-top: 10px;
}

.form-group label {
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input, select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #007bff;
}

.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-fullscreen {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
}

.btn-fullscreen:hover {
    border-color: #fff;
    color: #fff;
}

.branding {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #444;
    margin-top: 25px;
    text-align: center;
}

.branding a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.branding a:hover {
    color: #007bff;
}
