html {
    height: 100%;
}

header{
    width: 100%;
}

@media (max-width: 1092px) {

    /* Стили для меньших экранов (таблетки и мобильные устройства) */
    .navbar-brand {
        margin-right: auto;
        /* Переместить .navbar-brand влево */
    }

    .collapse.navbar-collapse {
        justify-content: flex-start;
        /* Выравниваем элементы справа */
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0;
        padding-left: 0;
    }
}

body{
    margin: 0;
    min-height: 100%;
    width: 100%;
    min-width: 1420px;
    font-family: 'Arial';
    background-image: linear-gradient(to bottom, #32C2F1, #8DDEF8);
    background-size: cover;
    background-attachment: fixed;
}

form{
    padding: 0%;
    margin: 0%;
}

.login {
    background-image: linear-gradient(to bottom right, #32C2F1, #FFFFFF);
    height: 100vh;
}

.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.form-container {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    background-color: #ffffff;
    width: 25%;
    height: auto;
    min-height: 410px;
    border: 1px solid #D9D9D9;
    border-radius: 25px;
    min-width: 400px;
    padding: 20px;
 }

 .login-input {
    margin-bottom: 5%;
    width: 85%;
 }

@media (max-width: 768px) {
    #myForm1 {
        width: 100%;
    }
}

.container{
    display: flex;
    width: auto;
    align-items: center;
    justify-content: center;
    align-items: center;
    padding: 0%;
}

.row-container {
    display: flex;
    flex-direction: row;
}

.column-container {
    display: inline-block;
    flex-direction: column;
    width: 20%;
    padding-left: 40px;
}

.container-fluid {
    padding: 25px 40px 25px 40px;
}


.grid-container {
    display: grid;
    grid-template-columns: auto auto;
}

.grid-item {
    white-space: nowrap;
    align-self: center;
    border: none;
}

.logo {
    margin-right: 32px;
}

h1{
    font-weight: bold;
    font-size: 32px;
    line-height: 37px;
    margin: 0px;
    color: #FFFFFF;
}

h2{
    font-weight: bold;
    font-size: 24px;
    line-height: 28px;
    margin: 0px;
    color: #FFFFFF;
}

h3 {
    font-size: 18px;
    margin: 0px;
    color: #FFFFFF;
}

.navbar{
    border-bottom: 5px solid #ffffff;
    padding: 0px;
}

.navbar-brand{
    display: flex;
    align-items: center;
    width: max-content;
}

.nav-item{
    margin-right: 42px;
    word-wrap: normal;
}

.nav-link{
    font-weight: 700;
    font-size: 20px;
    line-height: 23px;
    padding: 0;
    color: #FFFFFF;
    white-space: nowrap;
}

.nav-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

a[name="campus"] {
    background: #2FC6F7;
    border: 3px solid #ffffff;
    border-radius: 15px;
    padding: 16px 32px;
    font-weight: bold;
    font-size: 20px;
    line-height: 23px;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    justify-content: center;
}

a[name="campus"]:hover {
    background-color: #16bdf5;
    border: 3px solid #ffffff;
    cursor: pointer;
    text-decoration: none;
}

label{
    display: flex;
    align-items: start;
    margin: 0 0 42px 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 23px;
    color: #ffffff;
}

.login-input::placeholder,
textarea::placeholder {
    color: #9B9B9B;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.login-input {
    width: 100%;
    background: white;
    border: 1px solid #D9D9D9;
    border-radius: 15px;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: 32px;
    font-weight: bold;
    font-size: 16px;
    line-height: 18px;
    display: flex;
    align-items: center;
    color: #000000;
}

.input::placeholder,
textarea::placeholder {
    text-align: center;
}

.input {
    width: 100%;
    background: #2FC6F7;
    border: 1px solid #ffffff;
    border-radius: 15px;
    padding-top: 16px;
    padding-bottom: 16px;
    font-weight: 700;
    font-size: 20px;
    line-height: 23px;
    align-items: center;
    text-align: center;
    color: #ffffff;
    outline: none;
}

.input:focus::placeholder {
    color: transparent;
}

.input::placeholder,
textarea::placeholder {
    color: #FFFFFF;
}

.input[name="search"] {
    background: #2FC6F7;
    border: 1px solid #ffffff;
    border-radius: 15px;
    width: 50%;
    margin: 0px;
    padding-top: 16px;
    padding-bottom: 16px;
    font-weight: 700;
    font-size: 20px;
    line-height: 23px;
    text-align: left;
    text-indent: 32px;
    color: #ffffff;
}

.input[name="search"]:hover {
    background-color: #16bdf5;
}

.input[name="search"]::placeholder,
textarea::placeholder {
    text-align: left;
}

input[type=radio]{
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #000000;
    transition: 0.2s all linear;
    margin-right: 10px;
}

input[type=radio]:checked {
    background-color: #16bdf5;
}

label[name="upload"] {
    width: 100%;
    min-width: 445px;
    display: inline-block;
    justify-content: center;
    align-content: center;
    background: #D9D9D9;
    border: 1px solid #000000;
    border-radius: 25px;
    color:#9B9B9B;
    text-align: center;
    margin-bottom: 0px;
    padding: 30px;
    min-height: 155px;	
    cursor: pointer;
}

label input{
    margin: 0px;
    padding: 0px;
}

select {
    appearance: none;
    background: #2FC6F7;
    border-radius: 15px;
    padding: 16px 0;
    font-weight: bold;
    font-size: 20px;
    line-height: 23px;
    display: flex;
    border: 1px solid #ffffff;
    color: #FFFFFF;
    text-align: center;
}

select:hover {
    background-color: #16bdf5;
    cursor: pointer;
}

select option {
    line-height: 2rem;
    font-size: 20px;
    background: #2FC6F7;
    color: #FFFFFF;
}

select option[disabled] {
    color: #999999
}

button {
    background: #2FC6F7;
    border: 3px solid #ffffff;
    border-radius: 15px;
    padding: 16px 32px;
    font-weight: bold;    
    font-size: 20px;
    line-height: 23px;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #16bdf5;
    border: 3px solid #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

button:hover span {
    text-decoration: underline;
    text-underline-offset: 4px;
}


.card button:hover {
    background-color: #16bdf5;
    border: 3px solid #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-block {
    margin-bottom: 10px !important;
}

.table {
    border-collapse: collapse;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 0 42px 0;
    min-width: 650px;
}

.table thead{
    border: 3px solid #ffffff;
}

.table thead tr th{
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    border: none;
    background: #2FC6F7;
    align-content: center;
    text-align: center;
    vertical-align: middle;
    padding: 20px;
}

th:hover {
    cursor: pointer;
}

.table tbody {
    border: 3px solid #ffffff;
}

.table tbody tr td {
    color: #000000;
    font-size: 18px;
    font-weight: bold;
    background-color: white;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word;
}

.table tbody tr td label {
    color: #000000;
    font-size: 18px;
    margin: 0;
}

.table tbody tr td.yelowwTd {
    background-color: rgb(255, 255, 128);
}

.table td a{
    color: #000000;
    font-size: 18px;
    font-weight: bold;
    text-decoration: underline;
}

.table td a:hover {
    color: #16bdf5;
    cursor: pointer;
}

.table td a.redA {
    color: #ff0000;
    cursor: pointer;
}

.table td a.redA:hover {
    color: #16bdf5;
    cursor: pointer;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

input[type="date"]{
    background: #2FC6F7;
    border: none;
    border-radius: 15px;
    padding: 16px 32px 16px 32px;
    font-weight: bold;
    font-size: 20px;
    line-height: 23px;
    display: flex;
    align-items: center;
    border: 3px solid #ffffff;
    color: #FFFFFF;
}

input[type="date"]:hover {
    background-color: #16bdf5;
    cursor: pointer;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ccc;
    padding: 20px;
    background-color: #fff;
    z-index: 1;
}

.popup-content {
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.modal-body a {
    color: #000000;
    /* Цвет ссылки по умолчанию */
    text-decoration: underline;
    /* Подчеркивание ссылки */
}

.modal-body a:hover {
    color: #16bdf5;
}

.admin button {
    background: #1E6C8C;
}

.admin button:hover {
    border: 3px solid #1E6C8C;
    text-align: center;
}

.admin select{
    background: #1E6C8C;
}

.admin select:hover {
    border: 1px solid #1E6C8C;
}

.admin table {
    width: 100%;
    border-collapse: collapse;
}

.admin table thead tr th{
    background: #1E6C8C;
    font-size: 12px;
    padding: 0 5px 0 0;
}

.admin table tbody tr td {
    font-size: 12px;
    padding: 0 5px 0 0;
}

.admin table tbody tr td input {
    min-width: 30px;
    width: 100%;
}

.admin table tbody tr td select {
    font-size: 12px;
    padding: 2px 4px 2px 4px;
}

.admin table tbody tr td input[type="date"] {
    width: auto;
    font-size: 12px;
    padding: 2px 4px 2px 4px;
}

.column-conteiner select {
    margin-bottom: 20px;
}

.column-conteiner select:last-child {
    margin-bottom: 0;
}

/* Модальное окно для комментариев — ограничение высоты и прокрутка */
#myModal3 .modal-body {
    max-height: 75vh;           /* Максимум 60% высоты экрана */
    overflow-y: auto;           /* Вертикальная прокрутка при переполнении */
    word-wrap: break-word;      /* Перенос длинных слов */
    word-break: break-word;     /* Агрессивный перенос, если нужно */
    white-space: pre-line;      /* Сохраняет переносы \n из текста */
    padding: 1.25rem;              /* Немного отступов */
}

/* Для совместимости и плавной прокрутки */
#myModal3 .modal-body::-webkit-scrollbar {
    width: 8px;
}
#myModal3 .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
#myModal3 .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
#myModal3 .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
/* Опционально: ограничить минимальную высоту, чтобы не сжималось */
#myModal3 .modal-content {
    min-height: 200px;
}
#myModal3 .modal-lg {
    max-width: min(80%, 950px);
}

.expert-action-button {
    /* Сброс стилей */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Внешний вид как у select */
    background: #2FC6F7;
    border: 1px solid #ffffff;
    border-radius: 15px;
    font-weight: bold;
    font-size: 20px;
    line-height: 23px;
    color: #FFFFFF;
    width: 100%;
    margin-bottom: 42px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: 'Arial', sans-serif;

    /* Центрирование текста по горизонтали И вертикали */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0; /* сохраняем высоту как у select */
}

.expert-action-button:hover {
    background-color: #16bdf5;
}

.help-text {
    white-space: normal;
    word-wrap: break-word;
    background-color: white;
    color: black;
    padding: 20px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    display: none;
    
    /* Фиксированные размеры */
    width: 450px;
    max-width: 90vw; /* Ограничение на мобильных */
    height: 600px;
    max-height: 80vh; /* Ограничение на мобильных */
    
    overflow: auto;
    line-height: 1.4;
    text-align: left;
    
    /* Позиционирование поверх контента */
    position: absolute;
    top: 70%;
    left: calc(70%); /* Справа от формы */
    transform: translateY(-50%);
    z-index: 1000;
}

.modal-content {
    animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#messagePreview::-webkit-scrollbar,
textarea::-webkit-scrollbar {
    width: 10px;
}
#messagePreview::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}
#messagePreview::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
    background: #1E6C8C;
    border-radius: 5px;
}
#messagePreview::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
    background: #155d75;
}
button:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}
button:active:not(:disabled) {
    transform: translateY(0);
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.select2-container {
    width: 100% !important;
    display: block !important;
}

.select2-container--default .select2-selection--multiple {
    background: #2FC6F7 !important;
    border-radius: 15px !important;
    border: 1px solid #ffffff !important;
    padding: 16px 32px 16px 32px !important;
    font-weight: bold !important;
    font-size: 20px !important;
    line-height: 23px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    min-height: 50px !important;
    height: auto !important;
}

.select2-container--default .select2-selection--multiple:hover {
    background-color: #16bdf5 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 5px !important;
    float: left !important;
    margin-bottom: 5px !important;
    color: #2FC6F7 !important;
    font-size: 16px !important;
    padding: 2px 8px !important;
    margin-right: 5px !important;
}

/* Выпадающий список */
.select2-container--default .select2-results__option {
    font-size: 20px !important;
    padding: 0 !important;
    background: #2FC6F7 !important;
    color: #FFFFFF !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

.select2-container--default .select2-results__option:hover {
    background-color: #1967D2 !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #1967D2 !important;
    color: #ffffff !important;
}

.select2-selection__placeholder {
    color: #999 !important;
    font-weight: bold !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin: 0 !important;
    font-weight: bold !important;
    text-align: center !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
}


.select2-search__field::placeholder {
    font-weight: bold !important;
    text-align: center !important;
    color: #ffffff !important;
}

/* Окно с информацией на странице авторизации */
#instructionsBlock {
    transition: opacity 0.3s ease;
}

#showInstructionsLink {
    text-decoration: none;
    border-bottom: 1px dashed #6c757d;
}

#showInstructionsLink:hover {
    color: #007bff !important;
    border-bottom-color: #007bff;
}

/* Анимация появления модального окна */
.modal.fade .modal-dialog {
    transition: transform 0.2s ease-out;
}

/* Модалка добавления пользователя */

#addUserModal .modal-content {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#addUserModal .modal-header {
    padding: 15px 20px;
}

#addUserModal .modal-body {
    padding: 20px 30px;
}

#addUserModal .input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(30, 108, 140, 0.5);
}

#addUserModal .role-select {
    cursor: pointer;
}

#addUserModal .role-select:focus {
    outline: none;
    border-color: #ffffff;
}

/* Анимация появления */
#addUserModal.show {
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.triangle-list {
  list-style: none;
  padding-left: 0;
}

.triangle-list li {
  margin-bottom: 0.5em;
  position: relative;
}

.triangle-list a {
  position: relative;
  display: inline-block;
  padding-left: 1.2rem;
  text-decoration: none;
  transition: padding-left 0.2s ease; 
}


.triangle-list a::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, #00008B, #00BFFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.9em;
  transition: left 0.2s ease;
}

/* При наведении треугольник "подъезжает" к тексту */
.triangle-list a:hover::before {
  left: 0.3rem;
}


/*.triangle-list a:hover {
  padding-left: 1.7rem;
}
*/
