:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #f093fb;
    --bg: #0f172a;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 400px;
    text-align: center;
}

h1 { margin: 0; color: var(--primary); font-size: 2rem; }
.subtitle { opacity: 0.7; margin-bottom: 30px; }

.input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.input-box { flex: 1; }
.input-box label { display: block; font-size: 0.8rem; margin-bottom: 5px; opacity: 0.6; }

input {
    width: 80%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: 0.3s;
}

input:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 242, 254, 0.3); }

.action-buttons { display: flex; gap: 10px; margin-bottom: 20px; }

button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-calc { background: linear-gradient(to right, var(--secondary), var(--primary)); color: #000; }
.btn-reset { background: rgba(255, 255, 255, 0.1); color: white; }

button:hover { transform: translateY(-3px); filter: brightness(1.1); }

/* Animation Spinner */
.hidden { display: none; }
.loader { margin: 20px 0; }

.orbit {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Results */
.results-box {
    background: rgba(0, 242, 254, 0.1);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn { from { opacity: 0; scale: 0.9; } to { opacity: 1; scale: 1; } }

.root-display b { color: var(--primary); font-size: 1.2rem; }
