/* RapidAPI Currency Converter - Frontend Styles */

.racc-currency-converter {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.racc-converter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.racc-form-group {
    flex: 1;
    min-width: 120px;
}

.racc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

.racc-form-group input,
.racc-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

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

.racc-convert-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.racc-convert-button:hover {
    background: #2563eb;
}

.racc-convert-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.racc-result {
    margin-top: 20px;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 4px;
    border-left: 4px solid #3b82f6;
}

.racc-result-amount {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}

.racc-result-details {
    color: #6b7280;
    font-size: 14px;
}

.racc-loading {
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

.racc-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

/* Currency Rates Table */
.racc-rates-table-wrapper {
    max-width: 100%;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.racc-rates-table {
    width: 100%;
    border-collapse: collapse;
}

.racc-rates-table th,
.racc-rates-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.racc-rates-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.racc-rates-table tr:hover {
    background: #f9fafb;
}

.racc-currency-flag {
    font-size: 18px;
    margin-right: 8px;
}

.racc-currency-name {
    font-weight: 600;
    color: #111827;
}

.racc-currency-code {
    color: #6b7280;
    font-size: 12px;
}

.racc-rate-value {
    font-weight: 600;
    color: #111827;
}

.racc-rate-change {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 12px;
}

.racc-rate-change.positive {
    background: #dcfce7;
    color: #166534;
}

.racc-rate-change.negative {
    background: #fef2f2;
    color: #991b1b;
}

.racc-updated-time {
    text-align: center;
    padding: 10px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 12px;
    border-top: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .racc-currency-converter {
        margin: 10px;
        padding: 15px;
    }
    
    .racc-converter-form {
        flex-direction: column;
    }
    
    .racc-form-group {
        width: 100%;
    }
    
    .racc-convert-button {
        width: 100%;
    }
    
    .racc-rates-table {
        font-size: 14px;
    }
    
    .racc-rates-table th,
    .racc-rates-table td {
        padding: 8px 10px;
    }
}

/* Flag styles */
.racc-flag-select {
    padding-left: 35px !important;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 20px;
}
