/* Currency Converter Styles */

.converter-section {
    max-width: 800px;
    margin: 0 auto;
}

.converter-container {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.rate-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.rate-date {
    font-size: 14px;
    color: #666;
}

.btn-refresh {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.btn-refresh:hover {
    transform: rotate(180deg);
}

.converter-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.currency-input-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.currency-input-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.input-row {
    display: flex;
    gap: 15px;
}

.currency-select {
    flex: 0 0 200px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.currency-select:focus {
    outline: none;
    border-color: #4a90e2;
}

.amount-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    text-align: right;
    transition: border-color 0.3s;
}

.amount-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.amount-input.result {
    background: #e8f4fd;
    border-color: #4a90e2;
    color: #2c5aa0;
}

.btn-swap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4a90e2;
    color: #fff;
    border: 4px solid #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    transition: all 0.3s;
    z-index: 10;
}

.btn-swap:hover {
    background: #357abd;
    transform: translate(-50%, -50%) scale(1.1);
}

.rate-display {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
}

.rate-display p {
    margin: 5px 0;
    color: #555;
}

.rate-display p:first-child {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.quick-amounts {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.quick-btn:hover {
    border-color: #4a90e2;
    background: #f0f7ff;
    color: #4a90e2;
}

/* Rates Table */
.rates-table-container {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.rates-table-container h3 {
    margin-bottom: 20px;
    color: #333;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
}

.rates-table th,
.rates-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.rates-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.rates-table tr:hover {
    background: #f8f9fa;
}

/* Guide Section */
.guide-section {
    margin-top: 40px;
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.guide-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.guide-card h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 18px;
}

.guide-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .converter-container {
        padding: 20px;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .currency-select {
        flex: 1;
    }
    
    .btn-swap {
        position: static;
        transform: none;
        margin: 0 auto;
    }
    
    .btn-swap:hover {
        transform: scale(1.1);
    }
    
    .quick-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}




