:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-card: rgba(255, 255, 255, 0.7);
    --border-card: rgba(255, 255, 255, 0.8);
    --shadow-card: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f4f6;
    overflow: hidden;
    color: var(--text-main);
    position: relative;
}

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

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #c084fc;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #818cf8;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: #f472b6;
    animation-delay: -2s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Container & Header */
.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    text-align: center;
    z-index: 10;
}

header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Converter Card */
.converter-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 16px 60px 16px 20px;
    font-size: 1.5rem;
    font-weight: 400;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s ease;
    outline: none;
}

.input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-wrapper input::placeholder {
    color: #cbd5e1;
}

.unit {
    position: absolute;
    right: 20px;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
}

/* Swap Button */
#swap-btn {
    align-self: center;
    background: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

#swap-btn:active {
    transform: rotate(180deg) scale(0.95);
}

/* Readonly Input Styling */
#output-value {
    background: rgba(243, 244, 246, 0.5);
    cursor: default;
}
