body {
    font-family: 'Inter', sans-serif;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.bg-void {
    background: radial-gradient(ellipse at 50% 0%, #262626 0%, #0a0a0a 50%, #000000 100%);
    background-size: 200% 200%;
    animation: void 20s ease-in-out infinite;
}

@keyframes void {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Clock Layout */
.clock-wrapper {
    width: 320px;
    height: 320px;
}

@media (min-width: 768px) {
    .clock-wrapper {
        width: 400px;
        height: 400px;
    }
}

.clock-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 8px;
}

/* Liquid Glass */
.liquid-active {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.12) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.5) 0%, transparent 50%),
        rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 
        inset 0 0 40px rgba(255,255,255,0.05),
        inset 0 0 80px rgba(0,0,0,0.4),
        0 25px 50px -12px rgba(0,0,0,0.8),
        0 0 0 1px rgba(255,255,255,0.05);
    transition: all 0.5s ease;
}

.liquid-dormant {
    background: rgba(255,255,255,0.01);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

/* Glass panel for modal */
.glass-panel {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Clock Hands */
.hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    border-radius: 999px;
    z-index: 10;
}

.hand-hour {
    width: 4px;
    height: 25%;
    background: linear-gradient(180deg, #e5e5e5 0%, #737373 100%);
    margin-left: -2px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hand-minute {
    width: 3px;
    height: 35%;
    background: linear-gradient(180deg, #d4d4d4 0%, #525252 100%);
    margin-left: -1.5px;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.hand-second {
    width: 2px;
    height: 40%;
    background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%);
    margin-left: -1px;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.second-counterweight {
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 4px;
    height: 12px;
    background: #7f1d1d;
    transform: translateX(-50%);
    border-radius: 2px;
}

.center-cap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #525252, #171717);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Dormant State */
.dormant-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    border-radius: 50%;
}

@keyframes dormant-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.dormant-text {
    animation: dormant-pulse 3s ease-in-out infinite;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch:hover {
    background: rgba(255,255,255,0.15);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.toggle-switch.utc-mode {
    background: rgba(255,255,255,0.2);
}

.toggle-switch.utc-mode .toggle-slider {
    transform: translateX(24px);
    background: #d4d4d4;
}

/* Labels */
#label-utc.active {
    color: white;
}

#label-mist.inactive {
    color: #737373;
}

/* Modal */
.modal-backdrop {
    transition: opacity 0.3s ease;
}

.modal-panel {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
    display: none !important;
}

/* Debug inputs */
.debug-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.debug-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
}