/* SYSTEM MODULE */
body {
    background-color: white;
    font-family: Arial, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
}

.navbar {
    width: 100%;
}

.drop-notify {
    min-width: 350px;
}

.dropdown-item {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
}

.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;
}

.font-main {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a6372
}

.font-submain {
    font-size: 1.15rem;
    font-weight: bold;
    color: #1a6372
}

a.no-style {
    color: inherit;
    text-decoration: none;
}

a.no-style:hover {
    color: inherit;
    text-decoration: none;
}
/* END SYSTEM MODULE */

/* SPINER MODULE */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */
    display: none; /* Изначально скрыто */
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Вертикальное выравнивание элементов */
    z-index: 9999; /* Убедитесь, что он находится выше других элементов */
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 20px; /* Отступ снизу для текста */
}

.loading-text {
    color: white;
    font-size: 1.5rem;
    text-align: center;
}
/* END SPINER MODULE */

/* BUTTONS MODULE */
.btn-main {
    background-color: #1a6372;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
}

.btn-round {
    border-radius: 8px;
}

.btn-main-color {
    background-color: #1a6372;
    color: white;
}

.btn-main-color:hover {
    background-color: #1a6372;
    color: white;
}

.btn-main:hover {
    color: white;
}

.btn-nocolor {
    background-color: #0FA4AF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: none;
}

.btn-nocolor:hover {
    color: white;
}

.button-edit-patient, .button-delete-patient, .button-restore-patient {
    cursor: pointer;
}
/* END BUTTONS MODULE */

/* MAIN PAGE */
.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;
}
/* END MAIN PAGE MODULE */

/* PATIENTS LIST MODULE */
.search-container {
    width: 100%;
    margin-bottom: 20px;
}

#patientsTable {
    width: 100%;
    border-radius: 10px; /* Закругленные углы */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Тень */
    overflow: hidden;
}

.table_data th, .table_data td {
    height: 2.5em;
    vertical-align: middle;
}

#patientsTable thead th {
    background-color: #f3f3f3;
    color: gray;
    padding: 15px; /* Устанавливает отступы для заголовков */
}

#patientsTable tbody td {
    padding: 15px; /* Устанавливает отступы для ячеек */
}

#patientsTable tbody td {
    border-bottom: 1px solid #f3f3f3; /* Светло-серый цвет */
    color: black;
    font-weight: normal;
}

#patientsTable tbody tr:nth-child(even) {
    background-color: #f3f3f3; /* Чередование строк */
}

#patientsTable tbody tr:nth-child(odd) {
    background-color: #ffffff; /* Белый цвет для нечетных строк */
}

#patientsTable tbody tr:first-child {
    background-color: white; /* Белый цвет для первой строки */
}

#patientsTable tbody tr:hover {
    background-color: #e9ecef; /* Цвет при наведении */
    transition: background-color 0.3s ease; /* Плавный переход */
}

#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;
}

#questionsList {
    max-height: 800px; /* Установите необходимую высоту */
    overflow-y: auto;
    border: 1px solid #dee2e6;
    padding: 15px;
}

.flex-grow-1{
    max-width: 650px;
}

.question-input {
    width: 100%;
    margin: 0 auto;
    max-width: 350px;
}

.question-input-full {
    width: 100%;
    margin: 0 auto;
}

.d-flex.align-items-center.mb-3 {
    display: flex;
    justify-content: space-between;
}


/*.dt-buttons {*/
/*    padding-bottom: 15px;*/
/*    padding-right: 15px;*/
/*}*/
.form-switch-container {
    position: relative;
    display: inline-block;
    width: 90px; /* Уменьшили ширину кнопки */
    height: 30px; /* Уменьшили высоту кнопки */
    vertical-align: middle
}

.form-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch-label {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.4s;
    margin-top: -25px;
}

.form-switch-slider {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: 50%;
    background-color: white;
    border-radius: 30px;
    transition: transform 0.4s;
    z-index: 1;
}

.form-switch-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 30px; /* Центрируем текст вертикально */
    left: 18px;
    transition: color 0.4s;
}

.form-switch-input:checked + .form-switch-label .form-switch-slider {
    transform: translateX(40px); /* Двигаем слайдер вправо */
}

.form-switch-input:checked + .form-switch-label {
    background-color: #1a6372;
}

.form-switch-input:not(:checked) + .form-switch-label .form-switch-text {
    color: black;
    content: 'Нет';
}

.form-switch-input:checked + .form-switch-label .form-switch-text {
    color: white;
    content: 'Да';
}

.form-switch-input:checked + .form-switch-label .form-switch-slider::before {
    content: 'ДА';
    position: absolute;
    top: 0;
    left: -80px;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: -1; /* Текст будет под слайдером */
}
/* END PATIENTS LIST MODULE */

/* PATIENT DETAIL MODULE */
.list-group {
    position: sticky;
    top: 120px; /* Здесь должно быть значение, соответствующее вашему header */
}
.list-group-item-action {
    cursor: pointer;
}
.patient-detail .col-md-3 {
    border-right: 1px solid #dee2e6;
    height: calc(100vh - 120px); /* Здесь должно быть значение, соответствующее вашему header */
}
#patient-content {
    height: calc(100vh - 120px); /* Здесь должно быть значение, соответствующее вашему header */
    overflow-y: auto;
}
.text-muted p {
    margin: 0;
}
/* END PATIENT DETAIL MODULE */

/* TABLE MODULE */
.table-data-about {
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.styled-table th {
    font-weight: bold;
    background-color: #f0f0f0;
    text-align: center;
    vertical-align: middle;
}

.styled-table td {
    vertical-align: middle;
}

.styled-table td:nth-child(2) {
    text-align: center;
}

.styled-table td:nth-child(3) {
    text-align: center;
}

.styled-table.two-columns th,
.styled-table.two-columns td {
    width: 50%;
}

/* Для таблицы с 3 колонками */
.styled-table.three-columns th:nth-child(1),
.styled-table.three-columns td:nth-child(1), /* Название */
.styled-table.three-columns th:nth-child(3),
.styled-table.three-columns td:nth-child(3) { /* Значение */
    width: 40%;
}

.styled-table.three-columns th:nth-child(2),
.styled-table.three-columns td:nth-child(2) { /* Ед. измерения */
    width: 20%;
    text-align: center;
}

/* END TABLE MODULE */

/* REQUEST DATA TABLE MODULE */
.fixed-card-height {
    height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* END REQUEST DATA TABLE MODULE */

/* NOTIFICATION */
/* Скругление и тень для уведомлений */
.notification-item {
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Отступы между уведомлениями */
.notification-item:not(:last-child) {
    margin-bottom: 20px;
}

/* Эффект наведения */
.notification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Цвета фона для разных типов уведомлений */
/*.notification-item-request {*/
/*    background-color: rgba(0, 128, 255, 0.1); !* Светло-синий фон для запросов *!*/
/*}*/

/*.notification-item-delete {*/
/*    background-color: rgba(255, 0, 0, 0.1); !* Светло-красный фон для удаления пациентов *!*/
/*}*/

/* Размер иконок */
.notification-icon {
    font-size: 24px;
    margin-right: 15px;
}
/* END NOTIFICATION MODULE */

/* PARENTS LINK MODULE */
.answer-option {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 12px;
    font-size: 18px;
    background-color: #1a6372;
    color: white;
    border: none;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.answer-option.active, .answer-option:hover {
    background-color: #145157;
    color: #fff;
}

#save-button {
    margin-left: auto;
}

/* Стили для контейнера */
#question-container {
    background: #f9f9f9;
    margin-top: 75px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.control-buttons {
    display: flex;
    justify-content: space-between; /* Кнопки всегда будут с краёв */
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
}

.virtual-keypad-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    margin: 10px auto;
}

.virtual-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
}

.keypad-button, .keypad-delete {
    background-color: #1a6372;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    text-align: center;
}

.keypad-delete {
    grid-column: span 2;
    background-color: #e53935;
}

#save-button, #back-button {
    width: 150px;
    margin: 10px;
}

.completion-message {
    font-size: 24px;
    font-weight: bold;
    margin-top: 40px;
    display: none; /* Изначально скрываем сообщение */
}

.hidden-back-button {
    opacity: 0;
    pointer-events: none;
}