	html, body {
    min-height: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Учитываем паддинг при расчете размеров */
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background: linear-gradient(to bottom, #1A2A3C, #3D4A69);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: #1A2A3C; /* Устанавливаем фоновый цвет, чтобы предотвратить белое */
    color: #FFF;
    font-family: "Roboto", Arial, sans-serif;
    min-height: 100vh;
}

.page-shell {
    width: 100%;
    min-height: 100%;
    padding: 20px;
}

.page-content {
    max-width: 1240px;
    margin: 0 auto;
}

.environment-banner {
    max-width: 1240px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border: 1px solid rgba(242, 166, 215, 0.45);
    border-radius: 10px;
    background: rgba(242, 166, 215, 0.12);
    color: #FFE6F5;
    font-size: 0.95rem;
    text-align: center;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
}

.flash {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 16, 24, 0.35);
    color: #FFF;
}

.flash-success {
    border-color: rgba(62, 207, 142, 0.45);
    background: rgba(62, 207, 142, 0.14);
}

.flash-danger {
    border-color: rgba(255, 111, 97, 0.45);
    background: rgba(255, 111, 97, 0.14);
}

.flash-warning {
    border-color: rgba(255, 193, 7, 0.45);
    background: rgba(255, 193, 7, 0.14);
}

.flash-info {
    border-color: rgba(125, 157, 108, 0.45);
    background: rgba(125, 157, 108, 0.14);
}
/* Приветственное сообщение */
.dashboard-welcome {
    text-align: center;
    font-size: 1.2em;
    color: #FFF;
    margin-bottom: 30px;
}
section h3 {
    margin-top: 40px; /* Добавляем отступ сверху для следующего заголовка */
}
/* Ссылки действий в таблице */
table a {
    color: #FF6F61; /* Нежный розовый акцент */
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #FF6F61;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

table a:hover {
    background-color: #FF6F61;
    color: #FFF;
}

/* Ссылка "Logout" */
.logout-link {
    color: red;
    text-decoration: none;
    font-weight: bold;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Ссылки навигации */
.nav-link {
    color: #F2A6D7;
    font-weight: bold;
    text-decoration: none;
    margin-right: 15px;
}

.nav-link:hover {
    text-decoration: underline;
}
h1, h2, h3 {
    color: #F2A6D7; /* Пастельно-розовый акцент */
    text-align: center;
}

input, select {
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #F2A6D7; /* Лёгкий розовый акцент */
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}
option {
  color: #000; /* Чёрный текст */
  background-color: #fff; /* Белый фон */
}
input:focus, select:focus {
    outline: none;
    border-color: #FF8A7D;
    box-shadow: 0 0 5px #FF8A7D;
}

button {
    background: #FF6F61; /* Нежный розовый акцент */
    color: #fff;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    font-weight: bold;
    padding: 6px 12px; /* Компактные отступы */
    font-size: 0.85em; /* Уменьшаем текст */
    border: none;
    border-radius: 5px;
    display: inline-block;
    width: auto; /* Размер по содержимому */
    height: auto; /* Убираем лишнюю высоту */
    box-shadow: none; /* Убираем лишнюю тень */
}

button:hover {
    background: #FF5A4E; /* Лёгкое затемнение при наведении */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Едва заметная тень */
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #FF6F61;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: none;
}

.action-button:hover {
    background: #FF5A4E;
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background-color: #2C3E50; /* Тёмно-синий заголовок */
    color: #F2A6D7; /* Пастельно-розовый текст */
    padding: 10px; /* Уменьшаем отступы */
    text-align: left;
}

table td {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px;
}

table tbody tr:hover {
    background: rgba(255, 255, 255, 0.3); /* Лёгкое выделение строки */
}

.droppable-table.drop-highlight {
    border: 2px dashed #F2A6D7; /* Пастельно-розовая граница */
    background-color: rgba(242, 166, 215, 0.2);
}

.drop-highlight {
    border: 2px dashed #F2A6D7;
    background-color: rgba(255, 192, 203, 0.2); /* Лёгкая розовая подсветка */
}

a {
    color: #F2A6D7; /* Пастельно-розовый текст */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Кнопки действий */
.actions button {
    background: #7D9D6C; /* Мягкий зелёный для позитивных действий */
    color: white;
    border: none;
    padding: 8px 16px; /* Компактные отступы */
    border-radius: 5px;
}

.actions button:hover {
    background: #6F8F60;
}

.actions a {
    background: #FF6F61; /* Розовая кнопка-ссылка */
    color: white;
    font-weight: bold;
    padding: 6px 12px; /* Отступы как у кнопки */
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.actions a:hover {
    background: #FF8A7D;
}

/* Поле для копирования ссылки */
#guest-view-link {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin-bottom: 10px;
    border: 1px solid #F2A6D7; /* Пастельный розовый бордер */
    border-radius: 6px;
    background-color: #2C3E50; /* Темный фон для поля */
    color: white;
    text-align: center;
    display: inline-block;
}

button.copy-button {
    background-color: #FF6F61;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.85em;
    border-radius: 5px;
    margin-top: 5px;
    cursor: pointer;
}

button.copy-button:hover {
    background-color: #FF8A7D;
}
.queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
    align-items: flex-start;
}

/* Карточка очереди */
.queue-card {
    padding: 15px;
    box-sizing: border-box;
    min-height: 250px;
    background-color: rgba(44, 62, 80, 0.9);
    border-radius: 8px;
    overflow: hidden;
}

/* Таблица внутри карточки не должна ломать сетку */
.queue-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Чуть поджать таблицу в карточках */
.queue-card table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.9em;
}
table th {
    font-size: 0.9em;
    text-align: center;
    white-space: normal;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* фиксированная сетка */
}

.admin-table th, .admin-table td {
    padding: 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-col-id       { width: 40px; }
.admin-col-name     { width: 120px; }
.admin-col-email    { width: 200px; }
.admin-col-admin    { width: 40px; }

@media (max-width: 768px) {
    html, body {
        padding: 0;
    }

    .page-content,
    .environment-banner {
        max-width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    input, select {
        width: 100%;
    }
}
.admin-col-queues   { width: 40px; }
.admin-col-entries  { width: 40px; }
.admin-col-actions  { width: 400px; }  /* широкая колонка действий */

.admin-table button {
    padding: 5px 10px;
    font-size: 0.8em;
}
/* Ячейка с действиями в админке */
.admin-actions {
    text-align: center;
}

/* Строка действий (верхняя: пароль+сброс, нижняя: удалить+login as) */
.admin-actions-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

/* Форма внутри строки действий */
.admin-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Поле "Новый пароль" в админке */
.admin-password-input {
    width: 160px;
    padding: 6px 8px;
    margin: 0;
    border: 1px solid #F2A6D7;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    font-size: 0.85em;
    box-sizing: border-box;
}

/* Кнопки в админке — одна высота и вид */
.btn-danger,
.btn-outline {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85em;
    border-radius: 5px;
    cursor: pointer;
    height: 32px;          /* фиксируем высоту */
    line-height: 1;
    box-sizing: border-box;
}

/* Красные кнопки действий */
.btn-danger {
    background: #FF6F61;
    color: #fff;
    border: none;
}

/* Контурная кнопка Login as */
.btn-outline {
    background: transparent;
    color: #FF6F61;
    border: 1px solid #FF6F61;
    text-decoration: none;
}

/* Чтобы общие правила button не ломали высоту в админке */
.admin-table button {
    padding: 0 12px;
}

.admin-actions {
    text-align: center;
}

.admin-actions-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.admin-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.admin-password-input {
    width: 140px;
    padding: 6px 8px;
    margin: 0;
    border-radius: 5px;
    border: 1px solid #F2A6D7;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-sizing: border-box;
}

.admin-edit-link {
    padding: 6px 12px;
}

.queue-admin-page {
    display: grid;
    gap: 24px;
}

.queue-admin-page > * {
    min-width: 0;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-header-with-action {
    min-height: 48px;
}

.page-header-spacer,
.page-header-action {
    flex: 1;
}

.page-header-action {
    display: flex;
    justify-content: flex-end;
}

.page-title {
    flex: 0 1 auto;
    margin: 0;
}

.panel-section {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(19, 31, 45, 0.58);
    box-shadow: 0 12px 30px rgba(8, 12, 18, 0.18);
}

.panel-section h3 {
    margin-top: 0;
}

.compact-panel {
    min-height: 100%;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-caption {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.empty-state-note {
    margin: 16px auto 0;
    padding: 12px 14px;
    max-width: 860px;
    border-radius: 10px;
    border: 1px solid rgba(255, 193, 7, 0.35);
    background: rgba(255, 193, 7, 0.12);
    color: #FFF4CC;
    text-align: center;
}

.participant-form {
    display: grid;
    gap: 16px 18px;
    max-width: 860px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    color: #FFE6F5;
    font-weight: 600;
}

.form-field input,
.form-field select {
    width: 100%;
    margin: 0;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

.queue-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    min-width: 0;
}

.queue-lane {
    padding: 16px;
    border-radius: 14px;
    background: rgba(44, 62, 80, 0.82);
    border: 1px solid rgba(242, 166, 215, 0.15);
    min-width: 0;
}

.queue-lane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.queue-lane-header h3 {
    margin: 0;
    text-align: left;
}

.queue-lane-header p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.queue-row-actions {
    white-space: nowrap;
}

.status-button {
    min-width: 110px;
}

.btn-danger-soft,
.btn-outline-soft {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.82em;
}

.btn-danger-soft {
    background: rgba(255, 111, 97, 0.18);
    border: 1px solid rgba(255, 111, 97, 0.45);
    color: #fff;
}

.btn-danger-soft:hover {
    background: rgba(255, 111, 97, 0.3);
}

.btn-outline-soft {
    background: rgba(242, 166, 215, 0.08);
    border: 1px solid rgba(242, 166, 215, 0.38);
    color: #FFE6F5;
}

.btn-outline-soft:hover {
    background: rgba(242, 166, 215, 0.16);
}

.queue-empty-state {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92em;
}

.queue-empty-panel {
    padding: 24px;
    border-radius: 14px;
    border: 1px dashed rgba(242, 166, 215, 0.35);
    background: rgba(44, 62, 80, 0.45);
    text-align: center;
}

.queue-empty-panel h3 {
    margin: 0 0 10px;
}

.queue-empty-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.link-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.copy-field {
    display: flex;
    gap: 10px;
    align-items: center;
}

.copy-field input {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
}

.content-options-table {
    margin-top: 14px;
    display: block;
    overflow-x: auto;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.content-option-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.content-option-form input {
    flex: 1 1 260px;
    margin: 0;
}

@media (max-width: 768px) {
    .page-header,
    .section-heading,
    .copy-field {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header-spacer {
        display: none;
    }

    .page-header-action {
        justify-content: stretch;
    }

    .participant-form {
        grid-template-columns: 1fr;
    }

    .form-actions {
        grid-column: auto;
    }
}

:root {
    --bg-deep: #0f0f16;
    --bg-mid: #1f1731;
    --bg-glow-a: rgba(145, 70, 255, 0.18);
    --bg-glow-b: rgba(234, 163, 255, 0.16);
    --surface-glass: rgba(27, 23, 42, 0.46);
    --surface-glass-strong: rgba(27, 23, 42, 0.64);
    --surface-glass-soft: rgba(255, 255, 255, 0.08);
    --stroke-glass: rgba(255, 255, 255, 0.16);
    --stroke-accent: rgba(191, 157, 255, 0.36);
    --text-main: #f7f1fb;
    --text-soft: rgba(247, 241, 251, 0.76);
    --text-heading: #f1ccff;
    --accent-primary: #bf94ff;
    --accent-secondary: #e5a8ff;
    --accent-warm: #ff9ad6;
    --shadow-soft: 0 18px 48px rgba(14, 10, 18, 0.26);
    --shadow-button: 0 10px 28px rgba(125, 87, 199, 0.22);
}

body {
    position: relative;
    overflow-x: hidden;
    background-attachment: scroll;
    background:
        radial-gradient(circle at 12% 18%, var(--bg-glow-a), transparent 24rem),
        radial-gradient(circle at 86% 14%, var(--bg-glow-b), transparent 28rem),
        radial-gradient(circle at 74% 80%, rgba(191, 148, 255, 0.1), transparent 24rem),
        linear-gradient(155deg, #110f17 0%, #191426 42%, #241a35 100%);
    color: var(--text-main);
}

body::before,
body::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    filter: blur(18px);
    opacity: 0.72;
}

body::before {
    top: 88px;
    left: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(145, 70, 255, 0.18) 0%, rgba(145, 70, 255, 0) 72%);
}

body::after {
    right: -40px;
    bottom: 40px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 121, 249, 0.14) 0%, rgba(232, 121, 249, 0) 72%);
}

.page-shell {
    position: relative;
    isolation: isolate;
}

.page-content {
    position: relative;
    z-index: 1;
}

.environment-banner,
.flash,
.panel-section,
.queue-card,
.queue-lane,
table th,
table td,
input,
select,
.action-button,
.btn-danger-soft,
.btn-outline-soft,
.btn-danger,
.btn-outline {
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.environment-banner {
    border: 1px solid rgba(255, 200, 230, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        rgba(18, 34, 52, 0.44);
    box-shadow: var(--shadow-soft);
}

.flash {
    border-color: var(--stroke-glass);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(9, 19, 31, 0.42);
    box-shadow: 0 12px 28px rgba(4, 12, 20, 0.18);
}

.flash-success {
    border-color: rgba(119, 236, 197, 0.36);
    background:
        linear-gradient(135deg, rgba(119, 236, 197, 0.2), rgba(255, 255, 255, 0.03)),
        rgba(10, 28, 28, 0.36);
}

.flash-danger {
    border-color: rgba(255, 152, 136, 0.38);
    background:
        linear-gradient(135deg, rgba(255, 152, 136, 0.18), rgba(255, 255, 255, 0.03)),
        rgba(34, 16, 18, 0.34);
}

.flash-warning {
    border-color: rgba(255, 212, 120, 0.36);
    background:
        linear-gradient(135deg, rgba(255, 212, 120, 0.16), rgba(255, 255, 255, 0.03)),
        rgba(36, 26, 12, 0.34);
}

.flash-info {
    border-color: rgba(137, 220, 255, 0.34);
    background:
        linear-gradient(135deg, rgba(137, 220, 255, 0.14), rgba(255, 255, 255, 0.03)),
        rgba(11, 22, 36, 0.36);
}

h1, h2, h3 {
    color: var(--text-heading);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(255, 157, 206, 0.16);
}

.dashboard-welcome,
.section-caption,
.queue-lane-header p,
.queue-empty-state,
.queue-empty-panel p {
    color: var(--text-soft);
}

a {
    color: #ffd3ef;
}

.nav-link,
.logout-link,
table a {
    transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.panel-section,
.queue-card,
.queue-lane,
.queue-empty-panel {
    border: 1px solid var(--stroke-glass);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 42%),
        var(--surface-glass);
    box-shadow: var(--shadow-soft);
}

.panel-section::before,
.queue-lane::before,
.queue-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at top center, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%);
    opacity: 0.35;
}

.panel-section,
.queue-lane,
.queue-card {
    position: relative;
    overflow: hidden;
}

input,
select,
.copy-field input,
#guest-view-link-input,
#obs-view-link-input {
    border: 1px solid rgba(255, 206, 234, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
        rgba(26, 20, 32, 0.34);
    color: var(--text-main);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

input::placeholder {
    color: rgba(237, 246, 255, 0.48);
}

input:focus,
select:focus {
    border-color: rgba(247, 178, 216, 0.42);
    box-shadow: 0 0 0 4px rgba(247, 178, 216, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

table {
    border-spacing: 0;
}

table th {
    background: rgba(73, 56, 101, 0.72);
    color: #f1ccff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

table td {
    background: rgba(37, 28, 52, 0.58);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

table tbody tr:hover td {
    background: rgba(57, 42, 80, 0.68);
}

.droppable-table.drop-highlight,
.drop-highlight {
    border-color: rgba(191, 148, 255, 0.46);
    background:
        linear-gradient(180deg, rgba(191, 148, 255, 0.14), rgba(255, 255, 255, 0.04)),
        rgba(42, 29, 56, 0.36);
}

button,
.action-button,
.btn-danger,
.btn-outline,
.btn-danger-soft,
.btn-outline-soft {
    box-shadow: var(--shadow-button);
}

.action-button,
button:not(.btn-outline):not(.btn-outline-soft):not(.btn-danger-soft) {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, rgba(145, 70, 255, 0.26), rgba(232, 121, 249, 0.24));
    color: #fef9ff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.action-button:hover,
button:not(.btn-outline):not(.btn-outline-soft):not(.btn-danger-soft):hover {
    transform: translateY(-1px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
        linear-gradient(135deg, rgba(145, 70, 255, 0.3), rgba(232, 121, 249, 0.28));
}

.btn-danger-soft,
.btn-danger {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
        rgba(255, 142, 125, 0.24);
    border: 1px solid rgba(255, 142, 125, 0.32);
}

.btn-outline-soft,
.btn-outline {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        rgba(191, 148, 255, 0.08);
    border: 1px solid rgba(191, 148, 255, 0.26);
    color: #fff1fb;
}

.queue-lane-header h3,
.queue-card h3 {
    text-align: left;
}

.queue-row-actions button + button {
    margin-left: 8px;
}

.content-options-table,
.admin-table,
.droppable-table {
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-shell {
        padding: 12px;
    }

    body::before,
    body::after {
        opacity: 0.65;
    }
}

