/*
body {
    background-color: black !important;
    color: white !important;
    font-family: Arial, Helvetica, sans-serif !important;
}
a {
    color: rgb(236, 236, 132);
}
a:link {
    color: white;
}
a:visited {
    color: white;
}
a:focus {
    color: white;    
}
a:hover {
    color: white;    
}
a:active {
    color: white;    
}
*/

.flash-messages {
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.flash-message {
padding: 15px;
border-radius: 5px;
margin-bottom: 10px;
font-family: Arial, sans-serif;
font-size: 14px;
color: #fff;
opacity: 0.9;
}

.flash-message.success {
background-color: rgba(76, 175, 80, 0.9); /* Полутон зеленого */
}

.flash-message.error {
background-color: rgba(244, 67, 54, 0.9); /* Полутон красного */
}

.flash-message.warning {
background-color: rgba(255, 152, 0, 0.9); /* Полутон оранжевого */
}

.flash-message.info {
background-color: rgba(33, 150, 243, 0.9); /* Полутон синего */
}
.coefficients {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}
.coefficients h3 {
margin-top: 0;
}
.coefficients label {
display: inline-block;
width: 150px;
text-align: right;
}
.coefficients input[type="text"] {
width: 100px;
}
.coefficients input[type="number"] {
    width: 100px;
    text-align: right;
}
.input-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}
.input-label {
margin-bottom: 5px;
font-weight: bold;
}
.input-field {
width: 600px;
padding: 5px;
}
.navbar-nav .active > a {
    background-color: yellow !important;
    color: black !important;
}

/* static/styles.css */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}

.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}

.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}

.profile_table {
    width: 100%; /* Задаем ширину таблицы на всю доступную ширину */
  }
  
.profile_td {
    width: 33%; /* Задаем ширину каждой ячейки */
    text-align: center; /* Центрируем текст в ячейках */
  }

.profile_th {
    background-color: lightgray; /* Задаем ширину каждой ячейки */
    text-align: center; /* Центрируем текст в ячейках */
  }  

  #progress-bar {
    /* width: 100%; */
    height: 30px;
    background-color: #d7f3d8;
    color: rgb(40, 16, 129);
    font-weight: bold;
    text-align: center;
    margin: 10px; 
    position: relative;
    /* z-index: 1; */
}

#progress {
    width: 0%;
    height: 30px;
    background-color: #258628;
    text-align: center;
    line-height: 30px;
    color: rgb(40, 16, 129);
    opacity: 0.5;
    /* z-index: 2; */
}

#progresspcnt {
    width: 100%;
    height: 30px;
    position: absolute; 
    top: 5px;
}

/* Стили таблицы */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.custom-header {
    border: 1px solid #ddd;
    padding: 8px;
    background-color: #f4f4f4;
    text-align: center;
}

.custom-cell {
    border: 1px solid #ddd;
    padding: 4px;
    text-align: center;
}

/* Стили для инпутов */
.custom-input {
    width: 95%;
    padding: 2px;
}

.custom-input-file {
    padding: 2px;
}

/* Стили кнопок */
.custom-button {
    padding: 5px 10px;
    background-color: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.custom-button-del {
    padding: 5px 10px;
    background-color: #af534c;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
/* Стили для корректировочного коэффициента */
.custom-coefficient {
    width: 60px;
    padding: 5px;
    text-align: right; /* Ориентация текста справа */
    border: 1px solid #ccc;
    border-radius: 4px;
}
.custom-button:hover {
    background-color: #45a049;
}

.tabs-container {
    max-width: 100%;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    /* border: 1px solid #ddd; */
    border-radius: 8px;
  }
  
  .tab {
    position: relative;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 5px;
    border: 1px solid #c5dde9;
  }
  
  .tab:last-child {
    border-bottom: none;
  }
  
  .tab-header {
    width: 100%;
    padding: 15px;
    text-align: left;
    background-color: #fffacc;;
    border: none;
    cursor: pointer;
    outline: none;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: background-color 0.3s;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
  }
  
  .tab-header:hover {
    background-color: #fff7b3;
  }
  .tab-header::before {
    content: '▼'; /* Стрелка вниз */
    position: absolute;
    right: 15px;
    font-size: 16px;
    transition: transform 0.3s;
    color: rgb(67, 67, 146);
 }

 .tab.active .tab-header::before {
    transform: rotate(180deg); /* Поворачиваем стрелку вверх */
 }

  .tab-content {
    position: relative;
    max-height: 0; /* Скрыто по умолчанию */
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease; /* Плавная анимация */
    padding: 0 15px; /* Отступы убираются при скрытии */
  }
  
  .tab-content p {
    margin: 15px 0;
  }
  
  .tab.active .tab-content {
    max-height: none; /* Высота соответствует содержимому */
    padding: 15px; /* Восстанавливаем отступы при открытии */
  }

/* .lang-selector {
    display: inline-block; 
    margin-right: 10px; 
    color: #9d9d9d
}
.lang-selector:hover {

    color: white
}
.lang-active {
    font-weight: bold; 
    color: yellow; 
} */

/* Общий стиль для языка */
.language-selector {
    position: fixed;
    top: 10px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.lang-selector {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    color: #000;
    background-color: #f0f0f0;
    transition: background-color 0.3s, color 0.3s;
}

.lang-selector:hover {
    background-color: yellow;
    text-decoration: none;
    color: black;
}

.lang-active {
    background-color: yellow;
    color: black;
}

/* .navbar {
    background-color: #333;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
}

.navbar-right {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.navbar-right li {
    display: inline-block;
}

.navbar-right a {
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.navbar-right a:hover {
    background-color: #007bff;
    color: #fff;
}

.active a {
    background-color: #0056b3;
}

.username {
    color: yellow;
    font-weight: bold;
} */

.language-dropdown {
    position: fixed;
    top: 8px;
    right: 8px;
}

.language-dropdown select {
    padding: 5px 10px;
    font-size: 16px;
    border: .5px solid #ccc;
    border-radius: 5px;
    background-color: yellow;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    box-shadow: inset 0 0 0 1px black;
}

.language-dropdown select:hover {
    border-color: yellow;
    background-color: #f0f8ff;
}

.form {
    display: grid;
    grid-template-columns: auto auto auto; /* Три столбца: лейблы, инпуты и кнопка */
    grid-gap: 10px;
    align-items: center;
    justify-content: center;
}

.form label {
    text-align: right; /* Выравнивание лейблов по правому краю */
    padding-right: 10px;
    font-size: 14px;
}

.form input {
    width: 100%; /* Инпут занимает весь доступный столбец */
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form button {
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #436287; /* Цвет кнопки */
    color: white; /* Цвет текста */
    transition: background-color 0.3s;
}