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

:root {
    --primary-color: #333;
    --primary-light: #666;
    --primary-dark: #111;
    --secondary-color: #4a5568;
    --accent-color: #808080;
    --accent-light: rgba(128, 128, 128, 0.1);
    --light-bg: #f7fafc;
    --dark-text: #000000;
    --light-text: #2d3748;
    --card-shadow: 0 10px 25px rgba(45, 55, 72, 0.2);
    --transition: all 0.3s ease;
    --text-color: #111;
    --border-color: #ddd;
    --bg-color: #f8f8f8;
    --card-bg: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4caf50;
    --error-color: #f44336;
}

body {
    min-height: 100vh;
    background: #f9fafb;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

h1 {
    color: var(--dark-text);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: none;
}

.exchange-rate {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.exchange-rate i {
    margin-right: 10px;
    animation: rotate 2s infinite linear;
    font-size: 0.9rem;
}

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

.converter-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow), 0 0 0 1px var(--accent-light);
    margin-bottom: 20px;
    border: none;
}

.input-section {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    margin-bottom: 15px;
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-weight: 500;
    font-size: 1.1rem;
}

input {
    flex: 1;
    padding: 15px 15px 15px 35px;
    border: 2px solid #e2e8f0;
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.2);
}

button {
    padding: 0 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

button i {
    margin-left: 8px;
}

button:hover {
    background: var(--primary-dark);
}

.input-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.example-pill {
    background: #e2e8f0;
    color: var(--light-text);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.example-pill:hover {
    background: rgba(183, 149, 11, 0.1);
    color: var(--dark-text);
}

.result-section {
    padding-top: 10px;
}

.result-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-text);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.result-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 8px;
    opacity: 0.8;
}

#result-box {
    padding: 25px;
    background: var(--light-bg);
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
    color: var(--dark-text);
    min-height: 100px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(45, 55, 72, 0.1);
}

.result-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.result-numeric {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 400;
}

.footer {
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
}

.highlight {
    background-color: rgba(128, 128, 128, 0.05) !important;
    box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.1) !important;
}

.text-highlight {
    animation: textPulse 1.5s ease-in-out;
}

@keyframes textPulse {
    0% { color: var(--primary-color); }
    25% { color: var(--primary-dark); }
    50% { color: var(--primary-color); transform: scale(1.03); }
    75% { color: var(--primary-dark); }
    100% { color: var(--primary-color); }
}

.example-pill.active {
    background-color: var(--primary-color);
    color: white;
    border-bottom: 2px solid var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    body {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .converter-card {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .currency-symbol {
        left: 15px;
        top: 17px;
        transform: none;
    }
    
    input {
        border-radius: 12px;
        margin-bottom: 10px;
    }
    
    button {
        border-radius: 12px;
        padding: 15px;
        justify-content: center;
    }
    
    #result-box {
        font-size: 1rem;
        padding: 20px;
    }
    
    .result-text {
        font-size: 1.2rem;
    }
    
    .result-numeric {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .example-pill {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
} 