body {
    background-color: white;
    font-family: Arial, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
}

.navbar {
    width: 100%;
}

.alert-absolute {
    position: absolute;
    bottom: 0;
    visibility: hidden;
}

.container-timer {
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    background-color: white;
    border-radius: 6px;
}

.content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
}

.centered-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.btn-with-text {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 300px;
    height: 55px;
}

.btn-launch-step {
    width: 150px;
    height: 40px;
}

.btn-text {
    margin-left: 5px;
}

.form-select {
    background-position: right .5rem center;
    background-repeat: no-repeat;
}

.container-porgram-start {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: white;
}

.p-cross {
    color: black;
    font-size: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-circle {
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    display: none;
    position: fixed;
}

.cross {
    position: absolute;
    width: 13vh;
    height: 3px;
    background-color: black;
    top: 50%;
    left: calc(50% - 6.5vh);
    display: none;
}

.cross:before {
    content: "";
    position: absolute;
    width: 3px;
    height: 13vh;
    background-color: black;
    left: 50%;
    top: -6.5vh;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#button_edit_patient, #button_delete_patient, #button_play_patient {
    cursor: pointer;
}

.col-md-4 {
    width: 30%;
    position: fixed;
    height: 70%;
    overflow-y: auto;
    margin-left: -2%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    left: 11%;
}
.col-md-8 {
    margin-left: 36%; /* Same as left column's width */
    width: 65%;
    padding: 20px;
    overflow-y: auto;
}

.custom-select {
    font-size: 16px;
}

.resultTable {
    text-align: center;
}

.btn-stat {
    width: 200px;
    margin-bottom: 10px;
    border-radius: 20px;
    height: 70px;
}

.button-container.sticky-top {
  top: 80px;
}

.btn-stat-top {
    margin-top: 85px;
}


.search-container {
    width: 100%;
    margin-bottom: 20px;
}

#patientsTable, .table_data {
    width: 100%;
}

.table_data thead th {
    text-align: center !important;
}

.table_data th, .table_data td {
    height: 2.5em;
    vertical-align: middle;
}

#patientsTable thead th {
    background-color: black;
    color: white;
}

#patientsTable tbody td {
    padding: 15px; /* Устанавливает отступы для ячеек */
}

#patientsTable tbody td {
    border-bottom: 1px solid #f2f2f2; /* Светло-серый цвет */
}

.dataTables_length {
    padding: 15px;
}

.dataTables_paginate{
    padding: 10px !important;
}

.dataTables_wrapper .search-container .form-control {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.dataTables_wrapper .search-container .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#patientsTable_filter input {
    width: 400px;
}

/*.dt-buttons {*/
/*    padding-bottom: 15px;*/
/*    padding-right: 15px;*/
/*}*/



.flex-table {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px; /* Отступ между строками */
}

.flex-cell {
    padding: 8px;
    border: 1px solid #ccc; /* Рамка вокруг каждого блока */
    min-width: 120px; /* Минимальная ширина блока, измените по потребности */
    max-width: 120px; /* Максимальная ширина блока, измените по потребности */
    text-align: center; /* Выравнивание текста по центру */
}

#errorChart {
    height: 500px !important; /* Задаем фиксированную высоту для графика */
}

.col-instruction{
    width: 33% !important;
}

.circle-container {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%); /* Центрирование контейнера */
  /*width: 72px;*/
  /*height: 72px;*/
  display: flex;
  justify-content: center; /* Горизонтальное центрирование содержимого */
  align-items: center; /* Вертикальное центрирование содержимого */
}

.arrow {
    width: 150px; /* Задайте фиксированный размер */
    height: 150px;
    object-fit: contain; /* Подгоняет изображение */
    position: absolute;
    top: 50%; /* Центрирует изображение */
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-collapse{
    width: 950px;
    font-size: medium;
}

/* Стили для кнопок выбора файлов */
.file-field {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.file-field:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f0f2f5;
}

.file-field label {
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 10px;
    display: block;
}

.browse-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #3b71ca;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.browse-btn:hover {
    background-color: #2c5bb9;
    color: white;
    transform: translateY(-1px);
}

.preview-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: green;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.preview-btn:hover {
    background-color: green;
    color: white;
    transform: translateY(-1px);
}

.clear-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #dc3545;
    color: white;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    text-decoration: none;
}

.clear-btn:hover {
    background-color: #c82333;
    color: white;
    transform: translateY(-1px);
}

.file-preview {
    margin: 15px 0;
    padding: 10px;
    border-radius: 6px;
    background-color: white;
    border: 1px solid #dee2e6;
}

.file-preview img {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.file-preview audio {
    width: 100%;
    margin: 10px 0;
}

.file-preview span {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Анимация для загрузки файла */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 113, 202, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 113, 202, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 113, 202, 0); }
}

.file-field.uploading {
    animation: pulse 1.5s infinite;
}

/* Анимация для кнопки сохранения */
@keyframes btnPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-pulse {
    animation: btnPulse 1.5s infinite;
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.5);
}

.edu-button {
    display: inline-block;
    margin: 0 2px;
    padding: 2px 8px;
    font-size: 0.7em;
    line-height: 1.2;
    vertical-align: middle;
}