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;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

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

/* 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;
}

@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: flex-end;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
}

.nav-button {
    color: #a78bfa;
    text-decoration: none;
    font-size: 0.75em;
    font-weight: 600;
    padding: 6px 12px;
    border: 2px solid #a78bfa;
    border-radius: 8px;
    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);
}

.nav-button: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;
}


