/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f8ff; /* Светло-синий фон */
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    color: #0056b3; /* Темно-синий */
    text-align: center;
    margin-bottom: 30px;
}

/* Таблица курсов */
#rates-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#rates-table th, #rates-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#rates-table th {
    background-color: #0056b3;
    color: white;
    font-weight: bold;
}

#rates-table tbody tr:hover {
    background-color: #e6f2ff; /* Светло-синий hover */
}

/* Конвертер */
#converter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin-bottom: 20px;
}

#converter input, #converter select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    flex: 1;
    min-width: 120px;
}

#converter button {
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#converter button:hover {
    background-color: #003d82;
}

#result {
    margin-top: 10px;
    font-weight: bold;
    color: #0056b3;
}

/* Расчет таможенных платежей */
#customs-calculator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin-bottom: 20px;
}

#customs-calculator h2 {
    width: 100%;
    color: #0056b3;
    margin: 0 0 10px 0;
}

#customs-calculator input, #customs-calculator select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    flex: 1;
    min-width: 120px;
}

#customs-calculator button {
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#customs-calculator button:hover {
    background-color: #003d82;
}

#customs-result {
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
    color: #0056b3;
}

/* Сообщения об ошибках */
#error-messages {
    color: #d9534f; /* Красный */
    background-color: #f2dede;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Индикатор загрузки */
#loading-indicator {
    color: #0056b3;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
}

/* Footer */
#footer {
    text-align: center;
    font-size: 12px;
    color: #81b7e9; /* Бледный серый цвет */
    margin-top: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    #rates-table {
        font-size: 14px;
    }

    #converter {
        flex-direction: column;
        align-items: stretch;
    }

    #converter input, #converter select {
        width: 100%;
    }

    #converter button {
        width: 100%;
    }

    #customs-calculator {
        flex-direction: column;
        align-items: stretch;
    }

    #customs-calculator input, #customs-calculator select {
        width: 100%;
    }

    #customs-calculator button {
        width: 100%;
    }
}