button[disabled] {
    pointer-events: none;
}


a {
    font-size: 120%;
    color: White;
    text-decoration: none;
}

button {
    font-size: 16px;
}

input[type=text] {
    border: 2px solid green;
    border-radius: 4px;
    background-color: white;
}

.proj_name {
    border: 2px solid green;
    border-radius: 6px;
    background-color: white;
}

h1, h2, h3, h4, input {
    color: #6b6f76
}

label {
    color: #6b6f76;
    font-size: 110%;
    margin-right: 10px;
}

.active {
    color: #fff;
    position: relative;
    z-index: 1;
}

.active::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #608248;
}

.active .a {
    color: #608248;
}

/* Основные стили */
.header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #272b30;
    padding: 10px;
}

.menu {
    list-style-type: none;
    margin: 3px;
    padding: 0px;
    display: flex;
}
.second_menu {
    background-color: #25292e;
}
.menu li {
    position: relative;
}

.menu li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.menu li a:hover {
    background-color: #292f2e;
    color: #52703D
}


/* Анимация при наведении */
.menu li a:hover::after {
    background-color: #292f2e;
    position: absolute;
    bottom: -5px;
    left: calc(50% - 10px);
    width: 0;
    height: 0;
    border-left: 20px solid #292f2e;
    border-right: 20px solid transparent;
    border-bottom: 20px solid transparent;
}


/* Стили для анимации */
.menu li a::after {
    transition: transform 0.3s ease, width 0.3s ease;
    transform-origin: center top;
}

.menu .active a {
    color: green;
}

/* ------ */
.box {
    display: flex;
    gap: 24px;
    padding: 0 36px;
}

.box_btn {
    display: flex;
    gap: 14px;
}

.button {
    margin-left: 10px;
}

.container {
    overflow: hidden;
    background-color: #272b30;
}

.body {
    background-color: #23272b;
    margin: 0
}

.main {
    margin: 0 36px;
}

.img_ramka {
    margin: 5px;
    width: 800px;
    min-height: 800px;
    position: relative;
}

.img_ramka.zoom-2 img {
    transform: scale(2);
}
.img_ramka.zoom-3 img {
    transform: scale(3);
}
.img_ramka.zoom-4 img {
    transform: scale(4);
}
.img_ramka.zoom-5 img {
    transform: scale(5);
}
.img_ramka.zoom-6 img {
    transform: scale(6);
}

.img_ramka img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
    position: relative;
    transform-origin: left top;
}

.is-hide-ramka_link .img_ramka_link {
	display: none;
}

.img_ramka_link {
    position: absolute;
    outline: 2px solid blue;
}

.img_ramka_link--red {
    outline: 2px solid red;
}

.img_ramka_link--green {
    outline: 2px solid green;
}

.img_ramka_link--yellow {
    outline: 2px solid yellow;
}

.img_ramka_link--pink {
    outline: 2px solid deeppink;
}

.big_img_ramka {
    margin: 5px;
    display: flex;
    justify-content: center; /* центрируем элементы по ширине */
}

.big_img_ramka_main {
    position: relative;
    padding: 0 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.navigation_buttons {
    position: absolute;
    top: 0;
    left: 0;
    height: 800px;
    display: flex;
    align-items: center;
    align-self: flex-start;
}

.navigation_buttons--next {
    left: auto;
    right: 0;
}


.function_buttons {
    margin: auto 0;
    margin-right: 3px;
}

.img_info {
    margin-left: 50px;
    margin-right: 50px;
    display: flex;
}

.category_btn_back::after {
    margin-right: 50px;
    font-size: 24px;
    line-height: 40px;
    position: relative;
    top: -2px;
}

.big_img_ramka-nav {
    align-items: center;
    display: flex;
    flex-grow: 1;
}

.big_img_ramka-nav button {
    min-height: 32px;
}

.big_img_ramka-nav__left,
.big_img_ramka-nav__right {
    width: 128px;
    display: flex;
}

.big_img_ramka-nav__center {
    display: flex;
    flex-grow: 1;
    justify-content: center;
}

.img_ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
}

.category_li {
    margin: 10px;
}

.category_box {
    display: flex;
    align-items: center;
}

ol li::marker {
    color: white;
}

.menu li.active_b a {
    color: #608248;
}

.hide {
    display: none !important;
}

.glow-on-hover {
    width: flex;
    height: flex;
    border: none;
    outline: none;
    color: #fff;
    background-color: #272b30;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.glow-on-hover:hover {
    color: green
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000
}

.glow-on-hover:active:after {
    background: transparent;
    color: green
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #272b30;
    left: 0;
    top: 0;
    border-radius: 10px;
}


@keyframes glowing {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.a_category:hover {
    color: #608248;
}

.action_message {
    color: #608248
}

.input__file {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.input__file2 {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.get_words {
    display: flex;
    justify-content: center;
    color: white;
}

.table-data--center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.table_dark {
    font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
    font-size: 14px;
    width: 640px;
    text-align: left;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table_dark th {
    color: #F4A460; /* цвет для данных */
    border: 1px solid #608248;
    padding: 12px 17px;
}

.table_dark td {
    color: #F5F5DC; /* цвет для классов */
    border: 1px solid #608248;
    padding: 7px 17px;
}

.type-form {
    position: relative;
    display: flex

}

.drop-list {
    display: flex-block;
    font-size: 100%;
    border: none;
    outline: none;
    color: white;
    background-color: #272b30;
    cursor: pointer;
    border-radius: 10px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.drop-list:hover {
    color: green
}

.type-button {
    margin: auto 15px;
}

.errorlist {
    color: red;
}

/* Error404page */

.error404_body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-image: linear-gradient(to top, #2e1753, #1f1746, #131537, #0d1028, #050819);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.center_error {
    align-items: center;
    display: flex;
    justify-content: center;
    height: 100%;
    max-width: 50em;
    margin: 0 auto;
}

.error404 {
    text-align: center;
}

.error__title {
    background: linear-gradient(#00bcd4, #9575cd);
    -webkit-background-clip: text;
    background-clip: text;
    font-family: "Montserrat";
    font-size: 150px;
    font-weight: 200;
    margin: 0;
    -webkit-text-fill-color: transparent;
}

.error__type {
    color: #fff;
    font-weight: 600;
    font-size: 2.75rem;
    letter-spacing: 0.125em;
    margin: 0;
    text-transform: uppercase;
}

.error__cta {
    color: #fff;
    font-family: "Source Sans Pro";
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 2;
}

.error__link {
    color: #fff;
    padding: 0.25em 0.5em;
    text-decoration: none;
    white-space: nowrap;
}

.error__link--purple {
    background: #9575cd;
}

.error__link--blue {
    background: #00bcd4;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    right: 0;
    animation: starTwinkle 3s infinite linear;
}

.astronaut img {
    width: 100px;
    position: absolute;
    top: 55%;
    animation: astronautFly 6s infinite linear;
}

@keyframes astronautFly {
    0% {
        left: -100px;
    }
    25% {
        top: 50%;
        transform: rotate(30deg);
    }
    50% {
        transform: rotate(45deg);
        top: 55%;
    }
    75% {
        top: 60%;
        transform: rotate(30deg);
    }
    100% {
        left: 110%;
        transform: rotate(45deg);
    }
}

@keyframes starTwinkle {
    0% {
        background: rgba(255, 255, 255, 0.4);
    }
    25% {
        background: rgba(255, 255, 255, 0.8);
    }
    50% {
        background: rgba(255, 255, 255, 1);
    }
    75% {
        background: rgba(255, 255, 255, 0.8);
    }
    100% {
        background: rgba(255, 255, 255, 0.4);
    }
}

@media (max-width: 40em) {
    .error__title {
        font-size: 10rem;
    }

    .error__type {
        font-size: 1.25rem;
    }

    .error__cta {
        font-size: 1rem;
    }
}

.category-table {
    color: white;
    font-size: 18px;
    counter-reset: headings 0;
    margin-top: 15px;
    border-collapse: separate;
    border-spacing: 0 7px;
}
.category-table a{
    font-size: 100%;
}
.category-table a:hover{
    opacity: .8
}
.category-table td{
    padding: 0 15px 0 0;
    text-align: center;
    vertical-align: middle;
}
.category-table th{
    color: #F4A460;
    padding: 0 15px 0 0;
    text-align: center;
    vertical-align: middle;
}
.names{
    text-align: left !important;
}

.category-table__index::before{
    counter-increment: headings 1;
    content: counter(headings, decimal);
}



.login_body {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    min-height: 100vh;
    background: #23272b;
    flex-direction: column;
    margin: 0;
}

.login_button {
    padding: 15px;
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

#way {
    display: none;
}

label[for="way"]{
    display: none;
}

/* Общий фон и текст */
.select2-container--default .select2-selection--multiple {
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 6px !important;
    min-height: 38px;
    color: #f0f0f0;
}

/* Выбранные теги */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #333 !important;
    border: 1px solid #555;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 14px;
}

/* Иконка "×" */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 6px !important;
}

/* Плейсхолдер */
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    color: black !important;
    background-color: white !important;;
    width: 80% !important;
}

/* Выпадающий список */
.select2-container--default .select2-results>.select2-results__options {
    background-color: #1e1e1e;
    color: green;
}

/* Наведение */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: green !important;
    color: #fff;
}

.choice-fild{
		width:365px;
	}
#img_form .select2-selection {
		background-color: white;
		padding: 0;
		border: 2px solid green;
	}
#img_form .select2-selection__choice {
		color: green;
		background-color: #272b30;
		border-radius: 6px !important;
	}
#select2-id_neural_targets-results{
		background-color: #272b30;
	}

/* Модалка */
#modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
  }

  /* окно по центру */
.modal-content-box {
    position: relative;
    background-color: #23272b;
    margin: 10% auto;
    padding: 20px;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }

#modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: darkred;
  }

#modal-close:hover {
    color: red;
  }

.editor {
    width: 90%;
    height: 300px;
    margin-bottom: 10px;
}

.progress {
    display: none
}

.progress_message {
    color: red;
    margin-top:15px;
}

.progress_bar {
    margin-left: 15px;
    margin-bottom: 0;
    margin-top: 0;
    color: green;
}

/* Статистика */
.details {
  position: relative;
  display: block;
  width: auto;
  margin: 0 0 10px 0; /* убрали автоцентрирование */
  background: #272b30; /* фон блока */
  border-radius: 5px;
  transition: background-color 0.3s ease, padding 0.3s ease;
  overflow: hidden;
  border: 1px solid #425995; /* тонкая синяя рамка */
}

.details::after {
  position: absolute;
  right: 24px;
  top: 15px;
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-right: 3px solid #425995; /* изначально синий */
  border-bottom: 3px solid #425995;
  transform: rotate(-45deg);
  transform-origin: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.details:hover::after {
  border-color: #608248; /* зелёный при наведении */
}

.details[open]::after {
  transform: rotate(45deg);
  border-color: #608248; /* зелёный в открытом состоянии */
}

.details[open] {
  padding-bottom: 100px;
  background-color: #2d3238; /* чуть светлее при раскрытии */
}

.details[open] .details__title {
  margin-bottom: 32px;
}

.details__title {
  background: #25292e; /* тёмный фон заголовка */
  border-radius: 5px;
  padding: 12px 24px;
  font-size: 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: white; /* белый текст */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.details__title:hover {
  background-color: #292f2e; /* эффект при наведении */
  color: #608248; /* зелёный при ховере */
}

.details__title::-webkit-details-marker {
  display: none;
}

.details__content {
  padding: 0 32px;
  font-size: 16px;
  margin-bottom: -60px;
  color: white; /* текст внутри белый */
  font-family: monospace; /* чтобы JSON выглядел аккуратно */
}

.details__content p:last-child {
  margin-bottom: 0;
}
.details__content p:first-child {
  margin-top: 0;
}

/* ---------- */

.log-container {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    color: #e0e0e0;
    font-family: Consolas, monospace;
    overflow-x: auto;
    max-height: 90vh;
}

/* логер */
.log-container { background:#1e1e1e; color:#eee; padding:20px; border-radius:10px; font-family:Consolas; }
.log-line { white-space:pre-wrap; margin:2px 0; }
.error { color:#ff6b6b; font-weight:bold; cursor:pointer; }
.warning { color:#f2a900; }
.info { color:#6ab0f3; }
.traceblock { margin-left:20px; border-left:2px solid #555; padding-left:10px; }
.hidden { display:none; }
.path { color:#5dade2; }
.lineno { color:#f1c40f; font-weight:bold; }
.winerr { color:#ff8a00; font-weight:bold; }
.trace-line { color:#bbbbbb; }
.traceback-start { color:#f39c12; font-weight:bold; }