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

body {
    background: #000036;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, #3b82f633, transparent),
                radial-gradient(circle at bottom left, #8b5cf633, transparent);
    z-index: -1;
}

.app-container {
    width: 100%;
    max-width: 700px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

header h1 span {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: #94a3b8;
    margin-top: 5px;
}

.converter-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.tabs-container {
    display: flex;
    gap: 10px;
    background: #0f172a;
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 35px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #08b544;
    color: #60a5fa;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.rates-grid {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.history-item b {
    color: var(--accent-purple);
}
.conversion-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

@media (max-width: 600px) {
    .conversion-grid { grid-template-columns: 1fr; }
    .divider { transform: rotate(90deg); margin: 10px 0; }
}

.input-box label {
    display: block;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

input, select {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
}

input:focus, select:focus {
    border-color: #60a5fa;
}

.divider .arrow-icon {
    background: #334155;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.history-card {
    margin-top: 40px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    padding: 20px;
}

.history-card h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.history-item {
    background: #1e293b;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    border-left: 3px solid #60a5fa;
}
