body {
    margin: 0; /* Убираем стандартные отступы */
    padding: 0; /* Убираем стандартные отступы */
    height: 100%; /* Устанавливаем высоту на 100% для всей страницы */
    font-family: Arial, sans-serif;
    background: #121426;
    color: #fff;
    zoom: 85%;
}

.username-edit-input {
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid #a78bfa;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 13px;
    width: 120px;
}
.username-tag.editable {
    cursor: pointer;
    text-decoration: underline dotted;
}

.username-tag.editable:hover {
    background: rgba(0, 184, 148, 0.8);
}

.username-edit-input {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: calc(100% - 15px);
    padding: 2px 5px;
    border: 1px solid #00b894;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    z-index: 100;
}


/* Когда кнопка должна быть показана (у админа) */
#freezeRoomBtn.show {
    display: block !important;
}

#freezeRoomBtn.active {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}
.app_profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;                    /* расстояние между секциями */
    padding: 40px 32px;
}

/* Заголовок */
.app_profile h1 {
    color: #b8a6ff;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;

    margin: 0 14px; /* ⬅ слева и справа */

    text-shadow: 0 0 10px rgba(167,139,250,0.6);
}


/* Общие секции */
.app_profile .card
{
    width: 100%;
    display: flex;
    flex-direction: column;

    gap: 16px;
    margin-bottom:15px;
    padding: 24px 20px;

    background: rgba(167, 139, 250, 0.08);        /* светло-фиолетовый фон */
    border: 1px solid rgba(167, 139, 250, 0.25);  /* мягкая обводка */
    border-radius: 16px;

    box-shadow:
        inset 0 0 0 1px rgba(167,139,250,0.08),
        0 8px 24px rgba(0,0,0,0.35);
}
.card p.lead {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 15px;
}

.card .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.card .logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 0 15px rgba(124,58,237,0.5);
}

.card label {
    font-size: 13px;
    color: var(--muted);
    display: block;
    margin-bottom: 2px;
}

.card .input-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.card input {
    width: 100%;
    padding: 12px 1px 12px 5px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    margin-top: 25px;
    font-size: 24px;
}

.card input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3);
}

.card input.invalid {
    border-color: #ff5c5c;
    box-shadow: 0 0 0 2px rgba(255, 92, 92, 0.3);
}
.card .toggle-password {
    position: absolute;
    top: 65%;
    right: 0.1%;
    transform: translateY(-30%);
    background: none;
    border: none;
    padding: 0;               /* ❗ убираем padding */
    margin: 0;                /* ❗ убираем margin */
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    z-index: 2;
}

.app_profile .profile-divider {
    width: 80%;
    height: 1px;
    margin: 12px auto;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(167,139,250,0.6),
        transparent
    );
}
/* Аватар */
.app_profile .avatar-preview {
    width: 140px;
    height: 140px;
    min-width: 140px;     /* ⬅ не даём сжиматься */
    min-height: 140px;    /* ⬅ */
    flex-shrink: 0;       /* ⬅ критично для mobile */

    border-radius: 50%;
    border: 3px solid rgba(167,139,250,0.9);
    background-size: cover;
    background-position: center;

    box-shadow:
        0 0 0 4px rgba(167,139,250,0.15),
        0 6px 20px rgba(120, 80, 255, 0.55);

    transition: transform 0.3s, box-shadow 0.3s;
}


.app_profile .avatar-preview:hover {
    transform: scale(1.06);
    box-shadow:
        0 0 0 6px rgba(167,139,250,0.25),
        0 10px 30px rgba(120, 80, 255, 0.8);
}

/* Скрытый input file */
.app_profile input[type="file"] {
    display: none;
}

/* Поле ввода */
.avatar-section input {
    width: 100%;
    max-width: 320px;

    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(167,139,250,0.5);

    background: #1e1e32;
    color: #fff;

    font-size: 15px;
    outline: none;

    transition: 0.25s;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35);
}

.avatar-section input:focus {
    border-color: #a78bfa;
    background: #252544;
    box-shadow:
        0 0 0 2px rgba(167,139,250,0.25),
        inset 0 2px 6px rgba(0,0,0,0.35);
}


/* Кнопка сохранения */
.app_profile .saveBut {
    margin-top: 8px;

    padding: 14px 28px;
    border-radius: 14px;
    border: none;

    background: linear-gradient(90deg, #6d28d9, #7c3aed);
    color: #fff;

    font-size: 15px;
    font-weight: 600;
    cursor: pointer;

    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 6px 16px rgba(120, 80, 255, 0.55);
}

.app_profile .saveBut:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 24px rgba(120, 80, 255, 0.75);
}

.app_profile .saveBut:active {
    transform: scale(0.97);
}
/* ===== LOGO ===== */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.logo-text {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ddd6fe;
    text-shadow:
        0 0 12px rgba(168,85,247,0.6),
        0 0 24px rgba(124,58,237,0.4);
}

.logo-icon {
    width: 72px;
    height: 72px;
}

.logo-icon line {
    stroke: #a78bfa;
    stroke-width: 1.4;
    opacity: 0.8;
}

.logo-icon .orbit {
    fill: #c4b5fd;
}

.logo-icon .core {
    filter:
        drop-shadow(0 0 10px #a855f7)
        drop-shadow(0 0 20px rgba(168,85,247,0.6));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: .85; }
    100% { transform: scale(1); opacity: 1; }
}

/* Успех */
.password-field {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.password-strength {
    font-size: 13px;
    color: #aaa;
}
.password-strength.weak { color: #ff7a7a; }
.password-strength.medium { color: #facc15; }
.password-strength.strong { color: #4ade80; }

.app_main {
    position: relative;
    display: flex;
    flex-direction: column;

    background: radial-gradient(
        circle at top,
        #1a1c35 0%,
        #121426 60%
    );
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(167,139,250,0.1),
        0 20px 60px rgba(0,0,0,0.6);
}

.page-compact .app_main {
    background: #121426;                 /* без градиента */
    border-radius: 12px;                 /* меньше скругление */
    border: 1px solid rgba(167,139,250,0.15);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.45);    /* лёгкая тень */

    max-width: 900px;                    /* ⬅ укороченная ширина */
    margin: 40px auto;                   /* центр страницы */
}

/* 🔹 Верхняя панель темы */
.topic-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(30, 30, 40, 0.8);
    border-radius: 10px;
    min-height: 50px;
}

#addTopicBtn {
    position: absolute;
    right: 10px;
    background: linear-gradient(90deg, #6d28d9, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

#addTopicBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(120, 80, 255, 0.6);
}

.topic-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(184, 166, 255, 0.3);
    border-radius: 6px;
    color: white;
    font-size: 0.95rem;
}

.topic-input:focus {
    outline: none;
    border-color: #b8a6ff;
    box-shadow: 0 0 0 2px rgba(184, 166, 255, 0.2);
}

.topic-title {
    flex: 1;
    color: #b8a6ff;
    font-size: 1rem;
    padding: 8px 12px;
}

.topic-icon {
    font-size: 1.2rem;
    color: #b8a6ff;
}

/* Стили для полноэкранного режима */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.fullscreen-placeholder {
    width: 80vw;
    height: 80vh;
    background: #2d2d3d;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fullscreen-username {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.2rem;
}

/* Кнопка полноэкранного режима на видео */
.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.video-container:hover .fullscreen-btn {
    opacity: 1;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Кнопка удаления пользователя */
.delete-user-btn {
    position: absolute;
    top: 10px;
    right: 50px;
    background: rgba(255, 0, 0, 0.7);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    z-index: 10;
}

.video-container:hover .delete-user-btn {
    opacity: 1;
}

.delete-user-btn:hover {
    background: rgba(255, 0, 0, 1);
}

/* Бейдж демонстрации экрана */
.screen-badge {
    position: absolute;
    bottom: 40px;
    left: 10px;
    background: rgba(255, 165, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 5;
}

/* Активная кнопка демонстрации экрана */
#screenShareBtn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}


.topic-icon {
    position: absolute;
    left: 16px;
    font-size: 1.3rem;
    color: #b8a6ff;
    user-select: none;
    pointer-events: none;
}

.topic-title {
    text-align: center;
    color: #b8a6ff;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    padding: 0 40px;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}


/* 🔹 Панель чата слева */
#chatPanel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: calc(100vh - 70px);
    bottom: 70px;
    background: rgba(20,20,35,0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 16px 16px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 300;
    box-shadow: 4px 0 15px rgba(0,0,0,0.5);
    transition: left 0.4s ease;
}

#chatPanel.open {
    left: 0;
}

#chatToggle {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #6d28d9, #7c3aed);
    color: #fff;
    border-radius: 0 12px 12px 0;
    padding: 12px 8px;
    cursor: pointer;
    font-weight: bold;
    z-index: 310;
    transition: 0.3s;
    border: none;
    font-size: 1.2rem;
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatToggle:hover {
    background: linear-gradient(90deg, #7e3ff2, #8b5cf6);
    width: 45px;
}

.chat-header {
    background: linear-gradient(90deg, #6d28d9, #7c3aed);
    color: white;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#chatMessages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.chat-message {
    max-width: 85%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(70,50,120,0.8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    word-break: break-word;
}

.chat-message .username {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.chat-message .message-text {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.3;
}

.chat-input-container {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    gap: 5px;
}

#chatInput {
    flex: 1;
    border: none;
    padding: 10px 12px;
    background: rgba(0,0,0,0.2);
    color: #fff;
    outline: none;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(167,139,250,0.3);
}

#chatInput::placeholder {
    color: #b8a6ff;
    opacity: 0.7;
}

#sendChat {
    background: linear-gradient(90deg,#6d28d9,#7c3aed);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.25s;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sendChat:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(120, 80, 255, 0.6);
}

.chat-message.self {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    color: #fff;
    border: none;
    align-self: flex-end;
    border-radius: 16px 16px 0 16px;
    padding: 10px 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.topic-input {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #b8a6ff;
    background: rgba(0,0,0,0.2);
    border: 2px solid rgba(167,139,250,0.7);
    border-radius: 12px;
    padding: 8px 50px 8px 12px;
    outline: none;
    display: none;
    z-index: 100;
}

.topic-input::placeholder {
    color: #b8a6ff;
    opacity: 0.7;
}

header {
    background: rgba(25,25,40,0.8);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
header h1 {
    font-size: 1.6rem;
    color: #b8a6ff;
    font-weight: 600;
}
#roomLink {
    font-size: 0.85rem;
    color: #a78bfa;
    word-break: break-all;
    opacity: 0.9;
}

/* 🔹 СТИЛИ ДЛЯ ВИДЕО КОНТЕЙНЕРОВ (КВАДРАТНЫЕ) */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
    max-width: 100%;
    margin: 0 auto;
}

#videos {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-page-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-content: center;
    align-items: start;
    max-width: 100%;
    margin: 0 auto;
    min-height: 300px;
    width: 100%;
}

.video-container {
    position: relative;
    background: #0a0a17;
    border-radius: 16px;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.username-tag-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.username-tag-container:hover {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 10px rgba(184, 166, 255, 0.3);
}

.username-text {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

.username-edit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.username-tag-container:hover .username-edit-icon {
    opacity: 1;
}

.username-edit-icon svg {
    stroke: #b8a6ff;
    width: 12px;
    height: 12px;
}

/* Стиль для инпута редактирования */
.username-edit-input {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #b8a6ff;
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 14px;
    outline: none;
    text-align: center;
    min-width: 120px;
    max-width: 150px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* Для авторизованных пользователей - без иконки редактирования */
.username-tag-container.readonly {
    cursor: default;
}

.username-tag-container.readonly:hover {
    background: rgba(0, 0, 0, 0.7);
    box-shadow: none;
}

.username-tag-container.readonly .username-edit-icon {
    display: none;
}

/* Заглушка для видео */
.video-placeholder {
    width: 100%;
    height: 100%;
    background: #2d2d44;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 16px;
}

.placeholder-text {
    font-size: 14px;
    opacity: 0.8;
}

/* Бейдж админа */
.admin-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Кнопка удаления пользователя для админа */
.delete-user-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.delete-user-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Навигация между страницами видео */
.video-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.nav-btn {
    background: #4a4a6d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: #5a5a8d;
    transform: scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    color: white;
    font-size: 14px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

/* Сообщение когда нет видео */
.no-videos-message {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #a78bfa;
    font-size: 16px;
    opacity: 0.7;
    background: rgba(20,20,35,0.3);
    border-radius: 12px;
    width: 100%;
}

/* 🔹 Панель задач */
.task-panel {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(30, 30, 55, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    z-index: 200;
    padding: 24px 20px;
    border-radius: 12px 0 0 12px;
    gap: 16px;
}

.task-panel.open {
    right: 0;
}

.task-panel h2 {
    font-size: 1.3rem;
    color: #b8a6ff;
    margin-bottom: 10px;
    font-weight: 600;
}

.task-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(167,139,250,0.3);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    margin-bottom: 10px;
    font-size: 0.95rem;
    outline: none;
}

.task-input::placeholder {
    color: #b8a6ff;
    opacity: 0.7;
}

.task-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.task-item {
    background: rgba(255,255,255,0.05);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.task-item span {
    flex: 1;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.3;
}

.remove-task {
    background: none;
    border: none;
    color: #ff8888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.2s;
}

.remove-task:hover {
    transform: scale(1.2);
}

.task-panel .small-btn {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease, transform 0.25s;
    box-shadow: 0 6px 16px rgba(120, 80, 255, 0.45);
    margin-top: 10px;
}

.task-panel .small-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(120, 80, 255, 0.6);
}

.task-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #6d28d9, #7c3aed);
    color: #fff;
    border-radius: 12px 0 0 12px;
    padding: 12px 8px;
    cursor: pointer;
    font-weight: bold;
    z-index: 210;
    transition: 0.3s;
    border: none;
    font-size: 1.2rem;
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-toggle:hover {
    background: linear-gradient(90deg, #7e3ff2, #8b5cf6);
    width: 45px;
}

/* 🔹 Панель активности пользователей */
#activityPanel {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(100%);
    width: 520px;
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px 0 0 16px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 250;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.2);
    height: 70vh;
    max-height: 600px;
}

#activityPanel.open {
    transform: translateY(-50%) translateX(0);
}

#activityToggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #10b981, #34d399);
    color: white;
    border: none;
    border-radius: 10px 0 0 10px;
    padding: 15px 8px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 251;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 120px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

#activityToggle:hover {
    background: linear-gradient(90deg, #34d399, #10b981);
    transform: translateY(-50%) scale(1.05);
    box-shadow: -2px 0 15px rgba(16, 185, 129, 0.4);
}

#activityPanel.open + #activityToggle {
    right: 520px;
}

#activityHeader {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    padding: 12px 16px;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#activityHeader span {
    font-size: 1.1rem;
}

#activityCollapseBtn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#activityCollapseBtn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

#activityContent {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

#activityTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#activityTable th {
    text-align: left;
    padding: 12px 10px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
}

#activityTable td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

#activityTable tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.status-online {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.status-offline {
    background-color: #9ca3af;
}

.status-speaking {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: pulse 1.5s infinite;
}

.status-sharing {
    background-color: #8b5cf6;
    box-shadow: 0 0 8px #8b5cf6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.activity-time {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 4px;
}

.activity-empty {
    text-align: center;
    color: #9ca3af;
    padding: 30px 20px;
    font-style: italic;
    font-size: 0.95rem;
}

/* 🔹 Нижняя панель управления */
._messenger-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    height: 70px;
}

._messenger {
    display: block;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 180px;          /* 🔒 фиксированная ширина */
    max-width: 180px;
    min-width: 180px;

    background: linear-gradient(90deg, #6d28d9, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;

    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;

    transition: 0.25s ease, transform 0.3s;
    box-shadow: 0 5px 12px rgba(120, 80, 255, 0.4);

    /* 🔹 ПЕРЕНОС ТЕКСТА */
    white-space: normal;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
}



._messenger.active {
    background: linear-gradient(90deg, #a78bfa, #c4b5fd);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(180, 140, 255, 0.5);
}

._messenger svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 🔹 Уведомления */
#toastContainer {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.task-toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    text-align: center;
    word-break: break-word;
}

.task-toast.show {
    opacity: 1;
}

/* 🔹 Адаптив для телефонов */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        zoom: 30%;
    }

    main {
        padding: 10px;
    }

    .video-page-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        padding: 15px;
    }

    .video-container {
        width: 160px;
        height: 160px;
        border-radius: 12px;
    }

    .username-tag {
        font-size: 11px;
        padding: 4px 8px;
        bottom: 6px;
        left: 6px;
        right: 6px;
    }

    .admin-badge {
        font-size: 10px;
        padding: 3px 6px;
        top: 6px;
        right: 6px;
    }

    .delete-user-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
        top: 6px;
        left: 6px;
    }


    .topic-title {
        font-size: 1rem;
        padding: 0 35px;
    }

    .topic-input {
        width: 70%;
        font-size: 1rem;
        padding: 6px 40px 6px 10px;
    }

    header {
        padding: 12px 15px;
        flex-direction: column;
        gap: 5px;
    }

    header h1 {
        font-size: 1.3rem;
    }

    #roomLink {
        font-size: 0.75rem;
    }

    ._messenger-panel {
        padding: 10px 15px;
        gap: 8px;
        height: 65px;
    }

    ._messenger {
        padding: 10px 12px;
        font-size: 0.9rem;
        min-width: 90px;
        gap: 4px;
    }

    ._messenger svg {
        width: 16px;
        height: 16px;
    }

    .task-panel {
        width: 260px;
        padding: 20px 15px;
    }

    .task-toggle {
        width: 35px;
        height: 50px;
        font-size: 1rem;
    }

    #chatPanel {
        width: 320px;
        height: 130vh;
        bottom: 65px;
    }

    #chatToggle {
        width: 35px;
        height: 50px;
        font-size: 1rem;
    }

    #activityPanel {
        width: 300px;
        height: 60vh;
        max-height: 500px;
    }

    #activityPanel.open + #activityToggle {
        right: 300px;
    }

    #activityToggle {
        width: 40px;
        height: 100px;
        font-size: 1rem;
        padding: 12px 6px;
    }

    .video-navigation {
        margin: 15px auto;
        gap: 15px;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .page-indicator {
        font-size: 13px;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    body {
       zoom: 55%;
    }

    .video-page-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .video-container {
        width: 140px;
        height: 140px;
    }

    ._messenger-panel {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    ._messenger {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
        margin-bottom: 5px;
    }

    #activityPanel {
        width: 280px;
    }

    #activityPanel.open + #activityToggle {
        right: 280px;
    }
    .site-footer {
        padding: 32px 16px;
    }

    .footer-block h4 {
        font-size: 15px;
    }

    .footer-block p,
    .footer-info-links a {
        font-size: 13px;
    }
}
/* ---------- FOOTER ---------- */
.site-footer {
    margin-top: auto;
    padding: 40px 20px;

    background: linear-gradient(
        180deg,
        rgba(18,20,38,0.95),
        rgba(14,16,30,0.98)
    );

    border-top: 1px solid rgba(167,139,250,0.15);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
}


.site-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    text-align: center;
}

/* ---------- БЛОКИ ---------- */
.footer-block {
    padding: 12px;
}

.footer-block h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ddd6fe;
    text-shadow: 0 0 6px rgba(167,139,250,0.35);
}

.footer-block p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* ---------- ССЫЛКИ ---------- */
.footer-info-links a {
    color: #a78bfa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s, text-shadow 0.2s;
}

.footer-info-links a:hover {
    color: #c4b5fd;
    text-shadow: 0 0 8px rgba(167,139,250,0.6);
}

/* ---------- ACTION BLOCKS ---------- */
.footer-contact-action,
.footer-support-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ---------- КНОПКИ ---------- */
.footer-contact-btn,
.footer-support-btn {
    margin-top: 6px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
    letter-spacing: 0.3px;
}

/* Связаться */
.footer-contact-btn {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    color: #fff;
    box-shadow: 0 6px 18px rgba(34,197,94,0.35);
}

.footer-contact-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 26px rgba(34,197,94,0.55);
}

/* Поддержка */
.footer-support-btn {
    background: linear-gradient(90deg, #6d28d9, #7c3aed);
    color: #fff;
    box-shadow: 0 6px 18px rgba(124,58,237,0.45);
}

.footer-support-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(124,58,237,0.6);
}

/* ---------- COPYRIGHT ---------- */
.footer-copy p {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

/* ---------- support ---------- */
.container_support {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Header */
.container_support .header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.container_support  .header h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(196, 181, 253, 0.3);
}

.container_support .header h1 i {
    margin-right: 15px;
    color: var(--primary-light);
}

.container_support   .header .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Form */
.container_support   .form-container {
    margin-top: 20px;
}

.container_support   .form-group {
    margin-bottom: 25px;
}

.container_support    .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.container_support  .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.container_support label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-light);
}

.container_support   label i {
    margin-right: 8px;
    color: var(--primary-light);
}

.container_support  .required::after {
    content: " *";
    color: var(--danger);
}
/* Contact Form */
.contact-form-section {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}


.container_support input,
.container_support select,
.container_support textarea {
    width: 100%;
    padding: 15px;
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box; /* Добавляем для корректного расчета размеров */
    min-height: 52px; /* Фиксированная минимальная высота */
}

/* Для select убрать стандартные стрелки на некоторых браузерах */
/* Для select убрать стандартные стрелки на некоторых браузерах */
.container_support select {
    appearance: none; /* Убираем стандартные стили */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 20px;
}

/* Увеличить стрелку при фокусе */
.container_support select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 22px;
}

/* Альтернативный вариант с жирной стрелкой */
.container_support select.large-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 24px;
}

.container_support  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.container_support  input:hover, select:hover, textarea:hover {
    border-color: var(--primary-light);
}




.container_support .select-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
    pointer-events: none;
}

/* Стили для опций выпадающего списка */
.container_support   option {
    background-color: var(--dark-light);
    color: var(--text);
    padding: 10px;
}

.container_support  option:checked {
    background-color: var(--primary);
    color: white;
}

.container_support  option:hover {
    background-color: var(--primary-light);
}

.container_support .option i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.container_support  textarea {
    min-height: 150px;
    resize: vertical;
}

/* File Upload */
.container_support  .file-upload {
    position: relative;
    overflow: hidden;
}

.container_support   .file-upload input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: pointer;
    display: block;
}

.container_support   .file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(15, 23, 42, 0.7);
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    height: 120px;
}

.container_support   .file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.container_support   .file-upload-label i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-light);
}

.container_support  .file-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Priority */
.container_support    .priority-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.container_support   .priority-option {
    flex: 1;
    position: relative;
}

.container_support .priority-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.container_support    .priority-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-align: center;
}

.container_support .priority-low .priority-label {
    color: #10b981;
}

.container_support .priority-medium .priority-label {
    color: #f59e0b;
}

.container_support  .priority-high .priority-label {
    color: #ef4444;
}

.container_support .priority-option input:checked + .priority-label {
    background: rgba(15, 23, 42, 0.9);
    border-color: currentColor;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Submit Button */
.container_support  .submit-container {
    text-align: center;
    margin-top: 40px;
}

.container_support  .submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.container_support    .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.6);
}

.container_support   .submit-btn:active {
    transform: translateY(-1px);
}

.container_support    .submit-btn i {
    margin-right: 10px;
}

/* Success Message */
.success-message {
    display: none;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    animation: fadeIn 0.5s;
}

.success-message i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Footer */
.container_support    .footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.container_support   .footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.container_support    .footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container_support {
        padding: 20px;
    }

    .container_support   .header h1 {
        font-size: 2rem;
    }

    .container_support   .form-row {
        flex-direction: column;
        gap: 0;
    }

    .container_support .priority-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    .container_support {
        padding: 15px;
    }

    .container_support  .header h1 {
        font-size: 1.7rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Validation Styles */
.error {
    border-color: var(--danger) !important;
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}
/* Toast Notification */
.success-notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    padding: 1px;
    animation: slideDown 0.4s ease-out;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
}

.success-notification {
    background: #0f172a;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 12px;
    min-height: 70px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.notification-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.notification-icon {
    color: #10b981;
    font-size: 22px;
    margin-right: 12px;
}

.notification-title {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    margin: 0;
}

.notification-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    transform: rotate(90deg);
}

.notification-body {
    width: 100%;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

.notification-body p {
    margin: 5px 0;
}

.notification-body p:first-child {
    color: #10b981;
    font-weight: 500;
}

.notification-footer {
    width: 100%;
    text-align: right;
    margin-top: 10px;
}

.notification-action-btn {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.notification-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}
.field-error {
    font-size: 0.75rem; /* 12px */
    color: #dc2626; /* Более читаемый красный */
    margin-top: 0.25rem; /* 4px */
    min-height: 1.125rem; /* 18px */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(-5px);
    animation: errorAppear 0.2s ease forwards;
}

/* Или если нужна иконка перед текстом */
.field-error::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}


/* 🔹 Кнопка жалобы в контейнере видео */
.complaint-user-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 193, 7, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}

.video-container:hover .complaint-user-btn {
    opacity: 1;
}

.complaint-user-btn:hover {
    background: rgba(255, 193, 7, 1);
    transform: scale(1.1);
}

/* 🔹 Модальное окно жалобы */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.complaint-user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.complaint-user-info p {
    margin: 5px 0;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-primary:disabled {
    background: #a0a7d0;
    cursor: not-allowed;
}
.chat-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    max-width: 85%;
    word-wrap: break-word;
    border-left: 3px solid #8b5cf6;
}

.chat-message.self {
    background: rgba(139, 92, 246, 0.15);
    border-left: 3px solid #7c3aed;
    margin-left: auto;
    max-width: 85%;
}

.chat-username {
    font-weight: 600;
    font-size: 0.85rem;
    color: #a78bfa;
    margin-bottom: 4px;
}

.chat-message.self .chat-username {
    color: #8b5cf6;
}

.chat-message-text {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.chat-timestamp {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
    margin-top: 4px;
}
/* Добавьте в ваш CSS файл */
.camera-switch-btn {
    position: absolute;
    bottom: 40px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.camera-switch-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Иконка SVG */
.camera-switch-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

/* Анимация вращения иконки */
.camera-switch-btn:hover svg {
    transform: rotate(90deg);
    stroke: #60a5fa;
    stroke-width: 2.2;
}

/* Эффект свечения при наведении */
.camera-switch-btn:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    border: 1px solid rgba(96, 165, 250, 0.5);
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(96, 165, 250, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transform: scale(1.12) translateY(-2px);
}

/* Active */
.camera-switch-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Эффект нажатия */
.camera-switch-btn:active svg {
    stroke: #93c5fd;
    transform: rotate(180deg) scale(0.95);
}

/* Полноэкранный режим */
.fullscreen-overlay .camera-switch-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 52px;
    height: 52px;
    z-index: 1001;
}

.fullscreen-overlay .camera-switch-btn svg {
    width: 24px;
    height: 24px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .camera-switch-btn {
        width: 44px;
        height: 44px;
        bottom: 10px;
        right: 10px;
    }

    .camera-switch-btn svg {
        width: 22px;
        height: 22px;
    }
}
