:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Dynamic Background */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    animation: move-1 25s ease-in-out infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--secondary-color);
    animation: move-2 30s ease-in-out infinite alternate;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    animation: move-3 20s ease-in-out infinite alternate;
}

@keyframes move-1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(100px, -80px) scale(1.2) rotate(180deg);
    }

    100% {
        transform: translate(-50px, 100px) scale(0.9) rotate(360deg);
    }
}

@keyframes move-2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-120px, 80px) scale(1.15) rotate(-120deg);
    }

    100% {
        transform: translate(60px, -90px) scale(0.85) rotate(-240deg);
    }
}

@keyframes move-3 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(-80px, -100px) scale(1.3) rotate(90deg);
    }

    66% {
        transform: translate(120px, 60px) scale(0.8) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(270deg);
    }
}

/* Layout */
.container {
    width: 100%;
    max-width: 800px;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    font-style: italic;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

h2,
h3 {
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* Form */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.exchange-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 10px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

input,
select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

select {
    cursor: pointer;
}

/* Dropdown options styling */
select option {
    background-color: #1e293b;
    color: white;
    padding: 10px;
}

select option:hover {
    background-color: #334155;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Results */
.hidden {
    display: none;
}

.result-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.result-box {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
}

.vs-badge {
    background: var(--bg-color);
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
    margin: 0 10px;
    border: 1px solid var(--glass-border);
}

.label {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.sub-value {
    display: block;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.delta-box {
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 30px;
}

.delta-box.negative {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.delta-label {
    display: block;
    color: #cbd5e1;
    margin-bottom: 5px;
}

.delta-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.delta-box.negative .delta-value {
    color: #ef4444;
}

.delta-pct {
    font-size: 1.2rem;
    margin-left: 10px;
    color: var(--accent-color);
}

.delta-box.negative .delta-pct {
    color: #ef4444;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Methodology Section */
.methodology-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.methodology-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
}

.methodology-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calculation-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 20px;
}

.calculation-box.highlight {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.calc-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.calc-formula {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    white-space: pre-wrap;
}

.calc-formula .highlight-num {
    color: var(--accent-color);
    font-weight: 600;
}

footer {
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
    }

    .exchange-icon {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .result-summary {
        flex-direction: column;
        gap: 20px;
    }

    .vs-badge {
        margin: -10px 0;
    }

    .methodology-section h4 {
        font-size: 1.1rem;
    }

    .calc-formula {
        font-size: 0.8rem;
    }
}

/* Information Section Styles */
.info-section {
    margin-top: 30px;
    padding: 25px;
    background: rgba(59, 130, 246, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.info-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 22px;
    text-align: center;
}

.info-card {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card h4 {
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: 18px;
}

.info-card p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.9);
}

.info-card ul {
    margin-left: 20px;
    line-height: 1.8;
}

.info-card ol {
    margin-left: 20px;
    line-height: 1.8;
    margin-top: 10px;
}

.info-card li {
    margin-bottom: 8px;
    color: rgba(248, 250, 252, 0.85);
}

.info-note {
    margin-top: 12px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--accent-color);
    border-radius: 8px;
    font-size: 14px;
    color: rgba(248, 250, 252, 0.95);
}