body {
    background: #111;
    color: #fff;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qlock-container {
    background: #111;
    border-radius: 16px;
    box-shadow: 0 0 40px #000a;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#qlock-grid {
    display: grid;
    grid-template-columns: repeat(11, 2.2em);
    grid-template-rows: repeat(11, 2.2em);
    gap: 0.2em;
    background: #111;
    position: relative;
}

.qlock-letter {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2em;
    color: #333;
    background: #111;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.2s, background 0.2s;
}

.qlock-letter.active {
    color: #fff;
    background: #222;
}

.minute-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    display: inline-block;
    transition: background 0.2s;
    position: absolute;
}

.dot.active {
    background: #fff;
}

#analogClock {
    background: #111;
    border-radius: 50%;
    box-shadow: 0 0 20px #0006;
    display: block;
}

.controls, .stopwatch-controls, .timer-controls {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

button, input[type="number"] {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    transition: background 0.2s;
}

button:hover, input[type="number"]:focus {
    background: #444;
}

input[type="number"] {
    width: 60px;
    text-align: center;
}

.fullscreen-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 2.5em;
    cursor: pointer;
    z-index: 100;
    user-select: none;
    transition: color 0.2s;
}

.fullscreen-icon:hover {
    color: #00aaff;
}

.mode-toggle-icon {
    position: fixed;
    bottom: 20px;
    left: 70px;
    color: #fff;
    font-size: 2.5em;
    cursor: pointer;
    z-index: 100;
    user-select: none;
    transition: color 0.2s;
}

.mode-toggle-icon:hover {
    color: #ffd700;
}

body.light-mode {
    background: #f5f5f5;
    color: #222;
}

body.light-mode .qlock-container {
    background: #fff;
    box-shadow: 0 0 40px #bbb;
}

body.light-mode .fullscreen-icon,
body.light-mode .mode-toggle-icon {
    color: #222;
}

.site-title {
    position: fixed;
    top: 18px;
    left: 24px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-weight: 300;
    font-size: 2em;
    color: #fff;
    letter-spacing: 0.05em;
    z-index: 101;
    pointer-events: none;
}

body.light-mode .site-title {
    color: #222;
}
