.register-container {
    display: none;
}
.register-container.active {
    display: block;
}

.code-bind-container {
    display: none;
}
.code-bind-container.active {
    display: block;
}

       /*  <h3 id="code-toggle">Активировать код</h3>
        <div class="code-bind-container" id="code-form">*/
/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #1e1e2f, #2a2a4a, #3b3b6a);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    overflow-x: hidden;
}

/* Анимация фона */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Частицы (фон) */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Контейнер */
.container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 800px;
    width: 90%;
    transition: transform 0.3s ease;
}


/* Заголовки */
h2, h3 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ссылки */
a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff007a;
}

/* Форма */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    background-color: #2a2a4a !important;
    color: #ffffff !important;
}

input[type="text"],
input[type="password"],
select {
    padding: 12px;
    border: none;
    border-radius: 12px; /* Закругленные края */
    background: #2a2a4a; /* Темно-синий фон для контраста */
    color: #ffffff; /* Белый текст */
    font-size: 16px;
    transition: background 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    background: #3b3b6a; /* Чуть светлее при фокусе */
    outline: none;
}
select:hover {
    background: #3b3b6a; /* Эффект при наведении */
}
button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #1f2d56;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background: #ff007a;
    transform: scale(1.05);
}

/* Таблица */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

td form {
    display: inline-flex !important;
    gap: 10px !important;
}

td input[type="text"] {
    width: 200px;
}

/* Специфично для login */
.login-error {
    color: #ff007a;
    text-align: center;
    margin-bottom: 15px;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    animation: fadeIn 0.5s ease-out;
}

/* Макет админки */
.admin-container {
    max-width: 1400px;
    padding: 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Левая колонка меньше, правая больше */
    gap: 30px;
}

.admin-left, .admin-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-left form, .admin-right form {
    /*background: rgba(255, 255, 255, 0.05); */
    padding: 15px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr; /* Одна колонка на маленьких экранах */
    }
}

/* Контейнер для URL и кнопки */
.file-input-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Расстояние между полем и кнопкой */
}

.file-input-container input[type="text"] {
    flex: 1; /* Поле занимает доступное пространство */
    min-width: 250px;
}

.file-input-container button {
    white-space: nowrap; /* Предотвращает перенос текста в кнопке */
}

/* Поле "Отображаемое имя файла" */
.file-name-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #2a2a4a;
    color: #ffffff;
    font-size: 16px;
    border: none;
    transition: background 0.3s ease;
}

.file-name-input:focus {
    background: #3b3b6a;
    outline: none;
}

/* Выбранное значение */
.select2-selection__rendered {
    padding-right: 30px !important; /* Место для стрелки */
}
.select2-container--default .select2-results__option--selected {
    background-color: #1c678fcc !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-top: -10px;
    color: #ffffff !important;
}

/* Тёмно-синий стиль для Select2 */
        .select2-container--default .select2-selection--single {
            background-color: #2a2a4a !important; /* Тёмно-синий фон */
            border: 1px solid #2a2a4a !important; /* Граница чуть светлее */
            color: #ffffff; /* Белый текст */
            height: 38px;
            padding: 5px;
        }
        .select2-container--default .select2-selection--single .select2-selection__rendered {
            color: #ffffff; /* Белый текст внутри */
            line-height: 28px;
        }
        .select2-container--default .select2-selection--single .select2-selection__arrow {
            border-left: 1px solid #2a2a4a !important; /* Стрелка */
        }
        .select2-dropdown {
            background-color: #2a2a4a !important; /* Тёмно-синий фон выпадающего списка */
            border: 1px solid #2a2a4a !important;
            color: #ffffff;
        }
        .select2-results__option {
            color: #ffffff; /* Белый текст в опциях */
        }
        .select2-results__option--highlighted[aria-selected] {
            background-color: #2c3e50 !important; /* Подсветка при наведении */
            color: #ffffff;
        }
        .select2-container--default .select2-results__option[aria-selected=true] {
            background-color: #34495e; /* Выбранный элемент */
        }
        
        
   
   
   
   
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: #1a2b45;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #2c3e50;
    width: 800px; /* Увеличил ширину для блоков */
    color: #ffffff;
    border-radius: 5px;
}

.modal-header {
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-footer {
    border-top: 1px solid #2c3e50;
    padding-top: 15px;
    margin-top: 15px;
    text-align: right;
}

#roles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.class-block {
    flex: 1 1 30%; /* 3 колонки */
    padding: 10px;
    border-radius: 5px;
}

.class-block h4 {
    margin: 0 0 10px 0;
    color: #ffffff;
}

.role-checkbox {
    margin: 5px 0;
}

.role-checkbox input {
    margin-right: 10px;
}

/*
.role-checkbox input:disabled + label {
    color: #000 !important;
    background-color: #000 !important;
}*/

.role-checkbox input:disabled {
    accent-color: black !important; /* для современных браузеров */
    background: #ff0000 !important;
}
.role-checkbox input:disabled {
    cursor: not-allowed;
}
.role-checkbox input:disabled ~ * {
    color: #000;
}

.role-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #5b9bd452;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
}

.role-checkbox input[type="checkbox"]:checked {
    background: #0088ff;
}

.role-checkbox input[type="checkbox"]:disabled {
    background: #0088ff; /* фон при disabled */
    border-color: #0088ff;
    opacity: 0.6;
    cursor: not-allowed;
}

.role-checkbox input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    font-size: 16px;
    color: white;
}

/* Цвета для классов */
.class-deathknight { background-color: #8c0d22  !important ;}
.class-druid { background-color: #a14f06 !important;}
.class-hunter { background-color: #7a9653 !important;}
.class-mage { background-color: #4d8ab3 !important;}
.class-paladin { background-color: #80425d !important;}
.class-monk { background-color: #45d585 !important;}
.class-demonhunter { background-color: #4E1762 !important;}
.class-priest { background-color: #7A7B7C !important;}
.class-rogue { background-color: #E6CC80 !important;}
.class-evoker { background-color: #00CCDD !important;}
.class-shaman { background-color: #0070DD !important;}
.class-warlock { background-color: #494065 !important;}
.class-warrior { background-color: #C69B6D !important;}



table {
    width: 100%; /* Таблица занимает всю доступную ширину контейнера */
    table-layout: fixed; /* Фиксирует ширину колонок */
    border-collapse: collapse; /* Убирает лишние отступы */
}

th, td {
    padding: 8px; /* Отступы внутри ячеек */
    text-align: left; /* Выравнивание текста */
    word-wrap: break-word; /* Перенос длинных слов */
    overflow: hidden; /* Скрытие текста, выходящего за пределы */
    text-overflow: ellipsis; /* Добавление "..." для обрезанного текста */
    white-space: nowrap; /* Предотвращение переноса строки */
}

th:nth-child(1), td:nth-child(1) { /* Колонка "Пользователь" */
    width: 20%; /* Фиксированная ширина */
}

th:nth-child(2), td:nth-child(2) { /* Колонка "Дополнение" */
    width: 15%;
}

th:nth-child(3), td:nth-child(3) { /* Колонка "URL" */
    width: 50%;
}

th:nth-child(4), td:nth-child(4) { /* Колонка "Тип" */
    width: 15%;
}

/* Адаптивность для контейнера */
.admin-right {
    overflow-x: auto; /* Добавляет горизонтальную прокрутку, если таблица шире контейнера */
}

	.discord-widget {
				position: fixed;
				bottom: 20px;
				right: 20px;
				z-index: 1000;
				background: #333259; /* #5f0e0e из вашего дизайна */
				border-radius: 8px;
				box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
				overflow: hidden;
			}

			.discord-header {
			
				text-align: right;
				background: #333259; /* #5f0e0e из вашего дизайна */
			}
			.discord-content {
				position: relative;
				transition: height 0.3s ease, opacity 0.3s ease;
				height: 500px;
				opacity: 1;
			}

			.discord-content::after {
				content: '';
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background: rgba(51, 50, 89, 0.2); /* Полупрозрачный #a52a2a */
				pointer-events: none; /* Чтобы клики проходили к iframe */
			}

			.discord-content.collapsed {
				height: 0;
				opacity: 0;
				overflow: hidden;
			}
			.toggle-btn {
				background: #a52a2a; /* #a52a2a из вашего дизайна */
				color: #ffffff; /* #ffffff */
				border: none;
				padding: 5px 10px;
				border-radius: 4px;
				cursor: pointer;
				font-size: 14px;
				font-family: montserrat; /* Используем ваш шрифт */
				font-weight: 500;
				transition: background 0.3s;
			}

			.toggle-btn:hover {
				background: #dc4e4ecc /* #d2691e для hover */
			}

			.discord-content {
				transition: height 0.3s ease, opacity 0.3s ease;
				height: 500px;
				opacity: 1;
			}

			.discord-content.collapsed {
				height: 0;
				opacity: 0;
				overflow: hidden;
			}

			/* Адаптивность */
			@media (max-width: 768px) {
				.discord-widget iframe {
					width: 300px;
				}
				.discord-content {
					height: 400px;
				}
			}

			@media (max-width: 480px) {
				.discord-widget iframe {
					width: 250px;
				}
				.discord-content {
					height: 350px;
				}
			}
			#loading {
                display: none;
				color: #ffffff;
                font-weight: bold;
                text-align: center;
                padding: 10px;
                background-color: #333259;
                border-radius: 5px;
                border: 1px solid #2c3e50;
            }


/* Существующие стили остаются без изменений */

/* Стили для формы восстановления пароля */
.password-reset-container {
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
}

.password-reset-container.active {
    max-height: 200px; /* Установите нужную максимальную высоту */
    opacity: 1;
    transform: translateY(0);
}

/* Эффект "жидкости" для кнопки */
button {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:hover::after {
    width: 200px;
    height: 200px;
}

/* Дополнительные стили для заголовка */
h3 {
    cursor: pointer;
    transition: color 0.3s ease;
}

h3:hover {
    color: #007bff;
}

/* Существующие стили остаются без изменений */

/* Стили для формы привязки email */
.email-bind-container {
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
}

.email-bind-container.active {
    max-height: 200px; /* Установите нужную максимальную высоту */
    opacity: 1;
    transform: translateY(0);
}

.user-management-buttons {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}