:root {
    /* Premium Color Palette */
    --primary-color: #FF6B8B;
    --primary-gradient: linear-gradient(135deg, #FF6B8B 0%, #FF8E53 100%);
    --secondary-color: #8E2DE2;
    --accent-color: #4A00E0;
    --background-bg: #F9F9FC;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #2D3436;
    --text-muted: #636E72;
    --success: #00B894;
    --error: #FF7675;

    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-bg);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 107, 139, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(74, 0, 224, 0.05) 0%, transparent 20%);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 107, 139, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 107, 139, 0.4);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Mobile Nav adjustment */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simple hide for MVP, ideally hamburger */
    }
}


/* Calculation Results */
.result-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: var(--glass-border);
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
    display: none;
    /* Hidden by default */
    animation: slideUp 0.5s ease forwards;
}

.result-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    margin-bottom: 20px;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.highlight {
    color: var(--primary-color);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 2px solid #E0E0E0;
    background: white;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 139, 0.1);
}
/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}
.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-color);
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 140px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    padding: 8px 0;
    border: 1px solid #eee;
}
.lang-dropdown-content a {
    color: var(--text-color);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.lang-dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}
.lang-switcher:hover .lang-dropdown-content {
    display: block;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .lang-switcher {
        margin: 10px 0;
        width: 100%;
    }
    .lang-btn {
        width: 100%;
        justify-content: center;
    }
    .lang-dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        display: none; 
    }
    .lang-switcher:hover .lang-dropdown-content {
        display: block;
    }
}
