body {
    background: radial-gradient(ellipse at top, #1a237e 60%, #000 100%);
    color: #f8f8ff;
    font-family: 'Orbitron', 'Consolas', 'Monaco', monospace;
    margin: 0;
    min-height: 100vh;
}

.container {
    background: rgba(22, 26, 70, 0.92);
    border-radius: 20px;
    max-width: 800px;
    margin: 40px auto 0 auto;
    box-shadow: 0 0 28px #4157dc, 0 0 4px #00eaff;
    padding: 32px 32px 18px 32px;
    text-align: center;
    box-sizing: border-box;
}

h1 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #00eaff;
    letter-spacing: 1px;
    font-size: 3em;
    text-shadow: 0 0 10px #6d28d9, 0 0 20px #7c3aed, 0 0 30px #8b5cf6;
}

.subtitle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.live-clock {
    background: linear-gradient(145deg, rgba(8, 14, 40, 0.9), rgba(26, 28, 88, 0.88));
    border: 1px solid rgba(0, 234, 255, 0.5);
    border-radius: 18px;
    padding: 22px 22px 18px;
    margin: 10px 0 28px;
    box-shadow: 0 16px 35px rgba(0, 234, 255, 0.2), inset 0 0 25px rgba(65, 87, 220, 0.25);
    position: relative;
    overflow: hidden;
}

.live-clock::before {
    content: '';
    position: absolute;
    inset: -40% 10% auto;
    height: 120px;
    background: radial-gradient(circle at center, rgba(255, 214, 102, 0.15), transparent 70%);
    pointer-events: none;
}

.clock-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    margin-bottom: 14px;
}

.clock-title {
    font-size: 1.4em;
    color: #7ff6ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(0, 234, 255, 0.6);
}

.clock-subtitle {
    font-size: 0.85em;
    color: rgba(196, 181, 253, 0.85);
    letter-spacing: 0.6px;
}

.clock-display {
    background: linear-gradient(135deg, rgba(8, 12, 50, 0.85), rgba(39, 42, 110, 0.75));
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: inset 0 0 18px rgba(0, 234, 255, 0.18);
}

.clock-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 0.98em;
    color: #dbeafe;
    padding: 6px 0;
}

.clock-line .label {
    color: rgba(167, 139, 250, 0.9);
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
}

.clock-human {
    font-size: 1.05em;
    letter-spacing: 0.8px;
    color: #e0f2ff;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.35);
}

.swet-line {
    align-items: center;
}

.swet-tag {
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 214, 102, 0.18);
    color: #ffd166;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.clock-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 0.85em;
    color: rgba(196, 181, 253, 0.8);
}

.clock-tz {
    text-align: left;
}

.clock-tz-value {
    color: #7ff6ff;
    font-weight: 600;
}

.clock-link {
    background: transparent;
    border: 1px solid rgba(0, 234, 255, 0.6);
    color: #7ff6ff;
    padding: 6px 12px;
    font-size: 0.75em;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    max-width: none;
    margin-top: 0;
    box-shadow: none;
}

.clock-link:hover {
    background: rgba(0, 234, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.4);
}

.clock-link::before,
.clock-save::before {
    display: none;
}

.clock-controls {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(13, 16, 45, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.4);
    display: none;
}

.clock-controls.is-visible {
    display: block;
    animation: clockReveal 0.4s ease;
}

.clock-note {
    font-size: 0.8em;
    color: rgba(196, 181, 253, 0.8);
    margin-bottom: 10px;
}

.clock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.clock-actions .conversion-dropdown {
    flex: 1 1 220px;
    margin-bottom: 0;
}

.clock-save {
    background: linear-gradient(135deg, #ffd166 0%, #f59e0b 45%, #f97316 100%);
    color: #111827;
    font-size: 0.8em;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    width: auto;
    max-width: none;
    margin-top: 0;
}

.clock-save:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.5);
}

.clock-burst {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 102, 0.9), rgba(255, 214, 102, 0));
    opacity: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.live-clock.hour-strike .clock-burst {
    animation: clockBurst 1.4s ease-out;
}

@keyframes clockReveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes clockBurst {
    0% {
        opacity: 0.2;
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 rgba(255, 214, 102, 0.4);
    }
    40% {
        opacity: 1;
        transform: translateX(-50%) scale(8);
        box-shadow: 0 0 20px rgba(255, 214, 102, 0.9), 0 0 50px rgba(124, 58, 237, 0.8);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(14);
        box-shadow: 0 0 80px rgba(255, 214, 102, 0);
    }
}

h2.subtitle {
    margin: 0;
    color: #a78bfa;
    letter-spacing: 0.5px;
    font-size: 1.3em;
    font-weight: normal;
    text-shadow: 0 0 5px rgba(167, 139, 250, 0.5);
    opacity: 0.9;
    text-align: center;
}

/* Data Entry Section Box */
.data-entry-section {
    background: linear-gradient(135deg, rgba(22, 26, 70, 0.95), rgba(32, 44, 100, 0.9));
    border: 2px solid #00eaff;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 234, 255, 0.4), 0 0 15px rgba(139, 92, 246, 0.3);
    width: 100%;
    box-sizing: border-box;
}

/* Dropdown Container */
.dropdown-container {
    margin-bottom: 20px;
}

.conversion-dropdown {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid #a78bfa;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.1));
    color: #c4b5fd;
    outline: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(167, 139, 250, 0.5);
    box-sizing: border-box;
}

.conversion-dropdown:hover {
    border-color: #c4b5fd;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.2));
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.conversion-dropdown:focus {
    border-color: #00eaff;
    box-shadow: 0 6px 20px rgba(0, 234, 255, 0.5), 0 0 15px rgba(167, 139, 250, 0.4);
}

.conversion-dropdown option {
    background: rgba(22, 26, 70, 0.95);
    color: #c4b5fd;
    padding: 8px;
}

.space-input {
    width: 100%;
    padding: 15px 18px;
    margin: 18px 0;
    font-size: 1.1em;
    border-radius: 15px;
    border: 2px solid #00eaff;
    background: linear-gradient(135deg, rgba(80, 90, 160, 0.9), rgba(100, 110, 180, 0.8));
    color: #fff;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 234, 255, 0.4), 0 0 8px rgba(139, 92, 246, 0.3);
    transition: all 0.4s ease;
    text-align: center;
    letter-spacing: 0.3px;
    box-sizing: border-box;
}

.space-input:focus {
    border: 2px solid #a78bfa;
    box-shadow: 0 6px 20px rgba(0, 234, 255, 0.6), 0 0 15px rgba(167, 139, 250, 0.5);
    background: linear-gradient(135deg, rgba(100, 110, 180, 0.95), rgba(120, 130, 200, 0.9));
    transform: translateY(-1px);
}

.space-input::placeholder {
    color: #a78bfa;
    opacity: 0.8;
    font-size: 0.85em;
    letter-spacing: 0.1px;
}

button {
    background: linear-gradient(135deg, #00eaff 0%, #4157dc 50%, #8b5cf6 100%);
    color: #fff;
    font-size: 1.0em;
    font-weight: 600;
    padding: 10px 30px;
    margin-top: 15px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 234, 255, 0.4), 0 0 15px rgba(139, 92, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 80%;
    max-width: 200px;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover {
    background: linear-gradient(135deg, #4157dc 0%, #8b5cf6 50%, #00eaff 100%);
    box-shadow: 0 8px 25px rgba(0, 234, 255, 0.6), 0 0 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px) scale(1.05);
}

button:hover::before {
    left: 100%;
}

.result {
    background: linear-gradient(135deg, rgba(32,48,168,0.7), rgba(139, 92, 246, 0.3));
    margin-top: 25px;
    padding: 20px 15px;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: 600;
    color: #c4b5fd;
    box-shadow: 0 6px 20px rgba(0, 234, 255, 0.4), 0 0 15px rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(167, 139, 250, 0.3);
    text-shadow: 0 0 8px rgba(196, 181, 253, 0.6);
    animation: resultGlow 2s ease-in-out infinite alternate;
}

.result > div,
.result > h2 {
    text-align: left;
}

.result-content {
    white-space: pre-line;
    line-height: 1.8;
}

@keyframes resultGlow {
    from {
        box-shadow: 0 6px 20px rgba(0, 234, 255, 0.4), 0 0 15px rgba(139, 92, 246, 0.3);
    }
    to {
        box-shadow: 0 8px 25px rgba(0, 234, 255, 0.6), 0 0 20px rgba(139, 92, 246, 0.5);
    }
}

/* Radio group styles removed - now using dropdown */

.api-link {
    margin: 40px 0 20px 0;
}

.api-link a {
    color: #a78bfa;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #a78bfa;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.1));
    transition: all 0.4s ease;
    display: inline-block;
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.api-link a:hover {
    color: #c4b5fd;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(167, 139, 250, 0.2));
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5), 0 0 15px rgba(196, 181, 253, 0.4);
    transform: translateY(-2px) scale(1.05);
    border-color: #c4b5fd;
}

footer {
    margin-top: 24px;
    color: #36efff;
    font-size: 0.85em;
    letter-spacing: 1px;
    text-shadow: 0 0 3px #2b63e8;
}

.footer-logo {
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* Navigation Section */
.nav-section {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
}

.nav-button {
    color: #a78bfa;
    text-decoration: none;
    font-size: 0.5em;
    font-weight: 600;
    padding: 4px 8px;
    border: 1px solid #a78bfa;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.1));
    transition: all 0.4s ease;
    display: inline-block;
    text-shadow: 0 0 6px rgba(167, 139, 250, 0.6);
    box-shadow: 0 3px 12px rgba(139, 92, 246, 0.3);
}

.nav-button:hover {
    color: #c4b5fd;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(167, 139, 250, 0.2));
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5), 0 0 12px rgba(196, 181, 253, 0.4);
    transform: translateY(-1px) scale(1.05);
    border-color: #c4b5fd;
}
