/* Основные стили таблицы курсов */
.nbu-currency-table-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nbu-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.nbu-currency-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.nbu-currency-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
}

.nbu-currency-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.nbu-currency-table tr:hover {
    background: #f8f9fa;
}

.nbu-currency-table .currency-name {
    color: #6c757d;
    font-size: 0.9em;
}

.nbu-update-info {
    text-align: right;
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

/* Стили конвертера */
.nbu-converter-container {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    max-width: 500px;
}

.nbu-converter-form {
    margin: 20px 0;
}

.converter-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.converter-amount {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.converter-amount:focus {
    outline: none;
    border-color: #3498db;
}

.converter-select {
    flex: 2;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.converter-select:focus {
    outline: none;
    border-color: #3498db;
}

.converter-swap-row {
    justify-content: center;
}

.converter-swap {
    width: 40px;
    height: 40px;
    border: 2px solid #3498db;
    background: #3498db;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.converter-swap:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: rotate(180deg);
}

.converter-result {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.nbu-converter-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 15px;
}

/* Стили графика */
.nbu-graph-container {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nbu-graph-wrapper {
    margin: 20px 0;
    position: relative;
}

.nbu-graph-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .converter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .converter-amount,
    .converter-select {
        width: 100%;
        flex: none;
    }
    
    .nbu-currency-table-container,
    .nbu-converter-container,
    .nbu-graph-container {
        padding: 15px;
    }
    
    .nbu-title {
        font-size: 1.3em;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nbu-currency-table-container,
.nbu-converter-container,
.nbu-graph-container {
    animation: fadeIn 0.5s ease-out;
}