/* Base Styles */
.currency-converter {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    color: #333;
}

.calculator-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.calculator-header {
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    padding: 20px 24px;
    color: white;
}

.calculator-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.calculator-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.calculator-body {
    padding: 22px 24px;
}

/* Two-column layout styles */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 5px;
}

.form-column {
    flex: 1;
    min-width: 0;
}

/* Form control styles */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    margin: 4px 0 6px;
    box-sizing: border-box;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #3a7bd5;
    box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.1);
    background-color: #fff;
}

.form-control::placeholder {
    color: #999;
}

/* Button styles */
.calculate-button, .swap-button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(58, 123, 213, 0.2);
    margin-top: 10px;
}

.calculate-button:hover, .swap-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(58, 123, 213, 0.25);
}

.calculate-button:active, .swap-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(58, 123, 213, 0.2);
}

.swap-button {
    background: linear-gradient(135deg, #6c7989 0%, #434a54 100%);
}

.swap-icon {
    font-size: 1.2rem;
    margin-right: 5px;
}

/* Results section */
.calculator-results {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eaeef3;
}

.result-box {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.result-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3a7bd5;
}

.exchange-rate-info {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

#cc-exchange-rate {
    font-weight: 600;
    color: #333;
}

.rate-date {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

/* Responsive styles */
@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .calculator-body {
        padding: 18px 16px;
    }
    
    .calculator-header {
        padding: 16px 18px;
    }
    
    .calculator-header h3 {
        font-size: 1.3rem;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
}