@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Roboto:wght@400;500;600&family=Oswald:wght@400;500;600;700&family=Comic+Neue:wght@400;700&display=swap');

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 90%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: #323f56;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- MODIFIED --- */
/* Increased spacing below the amount section */
.amount-section {
    margin-bottom: 3rem;
}

.amount-section label {
    display: block;
    margin-bottom: 0.8rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #4a5568;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* --- MODIFIED --- */
/* Made amount input bigger and changed font */
.amount-section input {
    width: 100%;
    padding: 1.4rem; /* Increased padding */
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif; /* Changed font */
    font-size: 1.6rem; /* Increased font size */
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.amount-section input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* --- MODIFIED --- */
/* Increased gap between selectors and spacing below */
.currency-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem; /* Increased gap */
    margin-bottom: 3rem; /* Increased margin */
}

.currency-group {
    flex: 1;
    text-align: left;
}

.currency-group label {
    display: block;
    margin-bottom: 1rem; /* Adjusted for alignment */
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #4a5568;
    font-size: 1.2rem; /* Slightly smaller for better balance */
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* --- MODIFIED --- */
/* Made dropdowns bigger and changed font */
.currency-group select {
    width: 100%;
    padding: 0 1.5rem; /* Adjusted padding for better text alignment */
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif; /* Changed font */
    font-size: 1.8rem; /* Increased font size */
    font-weight: 600;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 95px; /* Increased height */
    -webkit-appearance: none; /* Removes default browser styling */
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.currency-group select:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.swap-icon {
    font-size: 1.4rem;
    cursor: pointer;
    color: #3b82f6;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-top: 2rem; /* Aligned with new label position */
    background: #f1f5f9;
    border: 2px solid #3b82f6;
    font-weight: bold;
}

.swap-icon:hover {
    background: #e0f2fe;
    color: #1e40af;
}

#result {
    margin-top: 2rem;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a202c;
    min-height: 3rem;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

#result:not(:empty) {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    transform: scale(1.02);
    box-shadow: 
        0 8px 25px rgba(30, 64, 175, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#result:contains("Converting") {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .currency-row {
        flex-direction: column;
        gap: 1.5rem; /* Increased gap for mobile view */
    }
    
    .currency-group {
        width: 100%;
    }
    
    .swap-icon {
        margin-top: 0;
        transform: rotate(90deg);
    }
    
    #result {
        font-size: 1.4rem;
        padding: 1rem;
    }
}