/* Основные стили */
body {
    font-family: 'Comfortaa', sans-serif;
    /* background-color: #f5f5f5; */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: linear-gradient(23deg, rgb(110, 170, 223) 0%, rgb(253, 196, 238) 34%, rgb(194, 126, 249) 64%, rgb(103, 180, 255) 100%);
}

/* Стили основного контейнера */
#mainContainer {
    background: linear-gradient(to bottom right, #b5e7fb, #f7bfd6);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 30px 30px 30px -10px rgba(0,0,0,0.15),
    inset 15px 15px 10px rgba(255,255,255,0.75),
    -15px -15px 35px rgba(255,255,255,0.55),
    inset -1px -1px 10px rgba(0,0,0,0.2);
    width: 60%;
    max-width: 700px;
    position: relative;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Стили для выбора даты и отображения курсов */
#dateAndRates {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    margin-bottom: 20px;
}

#dateInput {
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: 'Comfortaa';
    font-size: 15px;
    box-shadow: 30px 30px 30px -10px rgba(0,0,0,0.15),
    inset 15px 15px 10px rgba(255,255,255,0.75),
    -15px -15px 35px rgba(255,255,255,0.55),
    inset -1px -1px 10px rgba(0,0,0,0.2);
}

#exchangeRates {
    display: flex;
    justify-content: space-between;
    width: 50%;
}

#exchangeRates label {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#exchangeRates input {
    width: 90px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    box-shadow: 30px 30px 30px -10px rgba(0,0,0,0.15),
    inset 15px 15px 10px rgba(255,255,255,0.75),
    -15px -15px 35px rgba(255,255,255,0.55),
    inset -1px -1px 10px rgba(0,0,0,0.2);
}

/* Стили для таблицы */
table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 30px 30px 30px -10px rgba(0,0,0,0.15),
    inset 15px 15px 10px rgba(255,255,255,0.75),
    -15px -15px 35px rgba(255,255,255,0.55),
    inset -1px -1px 10px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}


th, td {
    padding: 10px;
    text-align: center;
    
}

th:last-child, td:last-child {
    border-right: none;
}

th {
    background-color: #ffffff;
    font-weight: bold;
    
}

td {
    border-bottom: 1px solid #ddd;
}

th.summa, td.summa,
th.rate, td.rate,
th.total, td.total {
    width: 20%;
}

th.currency, td.currency,
th.action, td.action {
    width: 10%;
}

input[type="number"], select {
    width: 80%;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #9ccbf1;
    text-align: center;
    outline: none;
    box-sizing: border-box;
}

input[readonly] {
    background-color: #fff;
}

.remove {
    cursor: pointer;
    color: #f66060;
    font-size: 18px;
    line-height: 1;
}

/* Стили для кнопки добавления валюты */
#addCurrency {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    color: #053f8c;
    cursor: pointer;
    font-size: 18px;
    border: none;
    background: none;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Comfortaa';
}

#addCurrency::before {
    content: "+";
    font-size: 24px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    transition: background-color 0.3s ease, color 0.3s ease;
    
}

#addCurrency:hover::before {
    background-color: #ffffff;
    color: #053f8c;
}

#addCurrency:active::before {
    background-color: #053f8c;
    color: #ffffff;
}

/* Стили для кнопки итоговой суммы */
#totalSumContainer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#totalSumBtn {
    padding: 10px 20px;
    background-color: #c5e4f9;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Comfortaa';
    cursor: default;
    box-shadow: 30px 30px 30px -10px rgba(0,0,0,0.15),
    inset 15px 15px 10px rgba(255,255,255,0.75),
    -15px -15px 35px rgba(255,255,255,0.55),
    inset -1px -1px 10px rgba(0,0,0,0.2);
    margin-right: 10px;
}

#totalSumCurrency {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: 'Comfortaa';
    width: 100px;
    box-shadow: 30px 30px 30px -10px rgba(0,0,0,0.15),
    inset 15px 15px 10px rgba(255,255,255,0.75),
    -15px -15px 35px rgba(255,255,255,0.55),
    inset -1px -1px 10px rgba(0,0,0,0.2);
}
