:root {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --accent-color: #3b82f6;
    --hover-bg: #1f1f1f;
    --border-color: #2f2f2f;
    --error-color: #ef4444;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Geist Mono', monospace;
    margin: 0;
    overflow: hidden;
}

/* User Nav */
.user-nav {
    position: absolute;
    top: 1rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
}

/* Container */
#clock-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-display {
    text-align: center;
    margin-bottom: 2rem;
}

#clock {
    font-size: 8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: block;
}

.date-text {
    font-size: 1.2rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.dialog {
    text-align: center;
    padding: 3rem;
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
}

.dialog h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.dialog p {
    color: #888;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Alarm Section */
.alarm-section {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.alarm-panel {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 320px;
}

.hidden {
    display: none !important;
}

/* Form Elements */
.input-time, .input-text {
    background: #000;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}

.input-time:focus, .input-text:focus {
    border-color: var(--accent-color);
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent-color);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #888;
}

.btn-secondary:hover {
    background: var(--hover-bg);
    color: white;
}

/* List */
.alarm-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    max-height: 180px;
    overflow-y: auto;
}

.alarm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.btn-delete {
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    font-size: 1.5rem;
}

.btn-delete:hover {
    color: var(--error-color);
}

.error-text {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Alarm Triggered State */
.alarm-triggered h2 {
    font-size: 4rem;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    #clock { font-size: 5rem; }
    .user-nav { top: 0.5rem; right: 1rem; }
}
