﻿/* Exchange Rates Page Specific Styles */
.exchange-rate-table {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

    .exchange-rate-table th {
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }

    .exchange-rate-table tbody tr:hover {
        background-color: rgba(13, 110, 253, 0.05);
    }

.rate-card {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .rate-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }

    .rate-card .currency-flag {
        width: 40px;
        height: 30px;
        margin-right: 10px;
    }

    .rate-card .currency-name {
        font-size: 1.25rem;
        font-weight: 600;
    }

    .rate-card .rate-value {
        font-size: 2rem;
        font-weight: 700;
        margin: 10px 0;
    }

    .rate-card .rate-change {
        font-size: 0.875rem;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 20px;
        display: inline-block;
    }

        .rate-card .rate-change.up {
            background-color: rgba(25, 135, 84, 0.1);
            color: #198754;
        }

        .rate-card .rate-change.down {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }

.converter-form {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    .converter-form .form-control {
        height: 50px;
        font-size: 1.1rem;
    }

    .converter-form select.form-control {
        padding-left: 40px; /* Space for flag icon */
        background-repeat: no-repeat;
        background-position: 10px center;
        background-size: 20px 15px;
    }

.swap-currencies-btn {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #495057;
    border: none;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

    .swap-currencies-btn:hover {
        transform: rotate(180deg);
        background-color: #dee2e6;
    }

.currency-info {
    display: flex;
    align-items: center;
}

.flag-icon {
    width: 24px;
    height: 18px;
    margin-right: 8px;
}

.conversion-result {
    background-color: #e9f7ef;
    border-left: 4px solid #27ae60;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

    .conversion-result .result-amount {
        font-size: 2rem;
        font-weight: 700;
        color: #27ae60;
    }

    .conversion-result .result-details {
        font-size: 0.875rem;
        color: #7f8c8d;
    }

/* Historical Rates Chart */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.chart-filters {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .chart-filters .form-group {
        margin-right: 10px;
        margin-bottom: 0;
    }

.rate-filter-btn {
    border-radius: 20px;
    padding: 5px 15px;
    margin-right: 5px;
    background-color: #e9ecef;
    border: none;
    color: #495057;
    font-size: 0.875rem;
}

    .rate-filter-btn.active {
        background-color: #0d6efd;
        color: #fff;
    }


/* Chart Section */
.chart-section {
    margin-bottom: 60px;
}

.chart-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

    .chart-header h2 {
        font-size: 1.8rem;
        color: var(--text-white);
    }

.chart-controls {
    display: flex;
    gap: 10px;
}

.time-range {
    display: flex;
    gap: 5px;
}

    .time-range button {
        background-color: transparent;
        border: 1px solid var(--border-grey);
        color: var(--text-grey);
        padding: 8px 15px;
        border-radius: 5px;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .time-range button.active {
            background-color: var(--primary-red);
            border-color: var(--primary-red);
            color: var(--text-white);
        }

.chart-box {
    height: 400px;
    position: relative;
}

/* Responsive styles */
@media (max-width: 767.98px) {
    .rate-card .rate-value {
        font-size: 1.5rem;
    }

    .chart-container {
        height: 300px;
    }

    .chart-filters {
        flex-wrap: wrap;
    }

        .chart-filters .form-group {
            margin-bottom: 10px;
            width: 100%;
        }
}
