* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

h1 {
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.converter-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.input-group, .select-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a73e8;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e8eaed;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #202124;
    transition: all 0.3s ease;
    background: white;
}

input:focus, select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.currency-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.swap-btn {
    background: #1a73e8;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.swap-btn:hover {
    background: #1557b0;
    transform: scale(1.1);
}

.result {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 2px solid #e8eaed;
}

.result-text {
    color: #5f6368;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.converted-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #1a73e8;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #5f6368;
    font-size: 0.875rem;
}

.refresh-btn {
    background: #1a73e8;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.refresh-btn:hover {
    background: #1557b0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.refresh-btn svg.loading {
    animation: spin 1s linear infinite;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a73e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (max-width: 480px) {
    .converter-box {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .converted-amount {
        font-size: 1.5rem;
    }
}