body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

/* Анимированный градиент при входе */
header.auth {
    background: linear-gradient(270deg, #b8860b, #000000, #b8860b);
    background-size: 600% 600%;
    animation: gradientShift 8s ease infinite;
}

/* Чёрный фон по умолчанию */
header {
    background-color: #000000;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

nav a,
nav form button {
    color: white;
    text-decoration: none;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

nav form {
    display: inline;
}

nav a:hover,
nav form button:hover {
    text-decoration: underline;
}


/* авторизация */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    animation: fadeIn 1s ease;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    max-width: 480px;
    width: 100%;
    animation: slideIn 1s ease forwards;
    transform: translateX(-30px);
    opacity: 0;
    box-sizing: border-box;
}

.login-title {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: center;
    font-weight: 700;
}

.login-form {
    width: 100%;
}

.login-form p {
    margin: 0 0 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.login-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.login-form input:focus {
    border-color: #3498db;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.login-error {
    color: #e74c3c;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
}

/* Анимации */
@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* дизайн для админки*/
/* Контейнер админ-панели */
.admin-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.admin-container h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    border-left: 6px solid #2980b9;
    padding-left: 15px;
}

.btn-create-user {
    display: inline-block;
    background-color: #2980b9;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 25px;
    transition: 0.3s;
}

.btn-create-user:hover {
    background-color: #21608c;
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.admin-users-table thead {
    background-color: #2980b9;
    color: white;
    font-weight: 700;
}

.admin-users-table th,
.admin-users-table td {
    padding: 14px 18px;
    text-align: left;
}

.admin-users-table tbody tr:nth-child(even) {
    background-color: #f7f9fc;
}

.admin-users-table tbody tr:hover {
    background-color: #e4f0ff;
}

.status-online {
    color: green;
    font-weight: 700;
}

.status-offline {
    color: #888;
    font-weight: 500;
}

.btn-edit {
    display: inline-block;
    background: none;
    border: 2px solid #2980b9;
    color: #2980b9;
    padding: 6px 12px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-edit:hover {
    background-color: #2980b9;
    color: white;
}
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.admin-action-btn {
    background-color: #3498db;
    color: white;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.admin-action-btn:hover {
    background-color: #217dbb;
}


/* Стиль контейнера как у редактирования */
.assigned-users-container {
    max-width: 750px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.assigned-users-container h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* Таблица */
.assigned-users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1rem;
}

.assigned-users-table th,
.assigned-users-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.assigned-users-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.assigned-users-table tr:hover {
    background-color: #f9f9f9;
}

/* Назад кнопка */
.btn-back {
    display: inline-block;
    margin-top: 30px;
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.btn-back:hover {
    text-decoration: underline;
}

/* Сообщение "Пользователей нет" */
.admin-users-table tbody tr td[colspan="7"] {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    padding: 50px 0;
}

/* Адаптация под мобилки */
@media (max-width: 768px) {
    .admin-users-table {
        font-size: 0.9rem;
    }

    .admin-container h2 {
        font-size: 1.7rem;
    }

    .btn-create-user {
        width: 100%;
        text-align: center;
    }
}
/* редактирование пользователя через админку */
.edit-user-container {
    max-width: 750px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.edit-user-container h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.edit-user-container .username {
    color: #2980b9;
}

.edit-user-container h3 {
    margin-top: 40px;
    color: #34495e;
    font-size: 1.4rem;
}

.edit-form {
    margin-top: 20px;
}

.edit-form p {
    margin-bottom: 15px;
}

.edit-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.edit-form input, .edit-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.edit-form input:focus, .edit-form select:focus {
    border-color: #2980b9;
    outline: none;
}

.divider {
    border: none;
    border-top: 2px dashed #ccc;
    margin: 40px 0;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-save {
    background-color: #27ae60;
    color: white;
}

.btn-save:hover {
    background-color: #1e874b;
}

.btn-password {
    background-color: #e67e22;
    color: white;
    margin-top: 10px;
}

.btn-password:hover {
    background-color: #c06211;
}

.btn-back {
    display: inline-block;
    margin-top: 40px;
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.btn-back:hover {
    text-decoration: underline;
}
/* создание нового пользователя через админку */
/* создание нового пользователя через админку */
.create-user-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.create-user-container h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.create-user-form {
    margin-top: 20px;
}

.create-user-form p {
    margin-bottom: 18px;
}

.create-user-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.create-user-form input,
.create-user-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.create-user-form input:focus,
.create-user-form select:focus {
    border-color: #2980b9;
    outline: none;
}

.moderators-checkboxes {
    margin-bottom: 18px;
}

.section-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.moderator-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.moderator-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f5f5f5;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}

.moderator-item:hover {
    background-color: #e8f0ff;
}

.moderator-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2980b9;
    cursor: pointer;
}

.btn-create {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-create:hover {
    background-color: #217dbb;
}

.btn-back {
    display: inline-block;
    margin-top: 30px;
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.btn-back:hover {
    text-decoration: underline;
}


/* панель модератора */
/* ===== Панель модератора (изолированные классы) ===== */

.mod-panel-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    animation: fadeIn 0.8s ease;
}

.mod-panel-title {
    font-size: 2.2rem;
    color: #4b0082;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.mod-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.mod-panel-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(75, 0, 130, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}

.mod-panel-card:hover {
    transform: translateY(-6px);
}

.mod-panel-username {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4b0082;
}

.mod-panel-status,
.mod-panel-lastlogin {
    margin: 6px 0;
    font-size: 1rem;
}

.mod-panel-online {
    color: green;
    font-weight: bold;
}
.mod-panel-offline {
    color: gray;
    font-style: italic;
}

.mod-panel-unread {
    background: red;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-left: 6px;
}

.mod-panel-actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mod-panel-btn {
    display: block;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.mod-panel-btn-primary {
    background: linear-gradient(135deg, #6a0dad, #7b1fa2);
}
.mod-panel-btn-primary:hover {
    background: linear-gradient(135deg, #7b1fa2, #6a0dad);
}

.mod-panel-btn-secondary {
    background: #555;
}
.mod-panel-btn-secondary:hover {
    background: #333;
}

.mod-panel-btn-task {
    background: #1e90ff;
}
.mod-panel-btn-task:hover {
    background: #187bcd;
}

.mod-panel-empty {
    text-align: center;
    color: #777;
    font-style: italic;
    margin-top: 40px;
}

.no-users {
    text-align: center;
    color: #777;
    font-style: italic;
}
.user-dashboard-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px 40px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
}

.user-dashboard-container h2 {
    margin-bottom: 20px;
}

.user-dashboard-container a.btn-chat,
.user-dashboard-container a.btn,
.user-dashboard-container a.btn-archive,
.user-dashboard-container a.btn-complete {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.user-dashboard-container a.btn {
    background-color: #3498db;
    color: white;
    margin-bottom: 30px;
}

.user-dashboard-container a.btn:hover {
    background-color: #217dbb;
}

.user-dashboard-container h3 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 20px;
    color: #34495e;
    font-weight: 700;
}

.moderators-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.moderators-list li {
    flex: 1 1 200px;
    background: #f7f9fb;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.moderators-list li .username {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

.user-dashboard-container a.btn-chat {
    background-color: #27ae60;
    color: white;
    padding: 8px 16px;
}

.user-dashboard-container a.btn-chat:hover {
    background-color: #1e8449;
}

.user-dashboard-container a.btn-archive {
    background-color: #95a5a6;
    color: white;
}

.user-dashboard-container a.btn-archive:hover {
    background-color: #718c8d;
}

/* Задания */
.tasks-list {
    margin-top: 20px;
}

.task-item {
    background-color: #f9fbff;
    border: 1px solid #d1dff7;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.task-item:hover {
    background-color: #e8f0ff;
}

.task-item h3 {
    margin: 0 0 10px 0;
    color: #34495e;
}

.task-item p {
    margin: 0 0 8px 0;
    color: #34495e;
}

.task-item a.btn-complete {
    background-color: #e67e22;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.task-item a.btn-complete:hover {
    background-color: #ca6e1e;
}

/* Сообщение об отсутствии заданий */
.no-tasks-msg {
    font-style: italic;
    color: #7f8c8d;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 20px;
}



/* Все для создания задания */
/* Стиль для блока создания задания */
.create-user-container h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.create-user-form p {
    margin-bottom: 20px;
}

.create-user-form label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 5px;
    display: block;
}

.create-user-form input,
.create-user-form select,
.create-user-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.create-user-form input:focus,
.create-user-form select:focus,
.create-user-form textarea:focus {
    border-color: #2980b9;
    outline: none;
}

/* Кнопки */
.btn-create {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-create:hover {
    background-color: #217dbb;
}

.btn-back {
    display: inline-block;
    margin-top: 30px;
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.btn-back:hover {
    text-decoration: underline;
}

/* Задания пользователя */
.task-list-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.task-list h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.task-list {
    list-style: none;
    padding: 0;
}

.task-item {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
}

.task-link {
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.task-link:hover {
    background: #f0f8ff;
}

.status-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-top: 8px;
}

.status-label.completed {
    background-color: #27ae60;
    color: white;
}

.status-label.not-completed {
    background-color: #e74c3c;
    color: white;
}

/* Завершение задания */
.complete-task-container {
    max-width: 750px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.complete-task-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.completed-message {
    background-color: #e0ffe0;
    padding: 15px;
    border: 1px solid #b2d8b2;
    border-radius: 8px;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 20px;
}

.btn-complete {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-complete:hover {
    background-color: #1e874b;
}
/* Панель обычного пользователя */
.user-dashboard-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.user-dashboard-container h2 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-item {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.task-item.completed {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.task-item h3 {
    margin-top: 0;
    color: #2980b9;
}

.status {
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    color: white;
}

.status.completed {
    background-color: #27ae60;
}

.status.pending {
    background-color: #e67e22;
}

.btn-complete {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-complete:hover {
    background-color: #1e874b;
}
/* Архив у Юзера */
.btn-archive {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 24px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-archive:hover {
    background-color: #217dbb;
}

.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
}

.btn-back:hover {
    text-decoration: underline;
}
/* настройка проверка заданий у админа */
.user-profile-container {
  max-width: 800px;
  margin: 30px auto;
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.user-profile-container h2 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 15px;
  color: #222;
}

.username {
  color: #007bff;
}

.status-block p {
  font-size: 16px;
  margin: 5px 0;
  color: #444;
}

.status-online {
  color: #28a745;
  font-weight: 600;
}

.status-offline {
  color: #dc3545;
  font-weight: 600;
}



.tasks-list {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.task-item {
  background: #f9f9f9;
  margin-bottom: 12px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
  transition: background 0.3s ease;
}

.task-item strong {
  font-size: 18px;
  color: #007bff;
}

.task-item.active {
  border-left: 5px solid #ffc107;
  background: #fffbea;
}

.task-item.completed {
  border-left: 5px solid #28a745;
  background: #e9f7ef;
  color: #2c662d;
}

.task-item.completed .task-comment {
  margin-top: 6px;
  font-style: italic;
  color: #155724;
}

.task-completed-date {
  float: right;
  font-size: 14px;
  color: #666;
}

.no-tasks-msg {
  font-style: italic;
  color: #666;
  margin-top: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  margin-top: 30px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  background-color: #007bff;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}


/* --- Стили для списка пользователей (admin_user_tasks_list) --- */
.user-grid {
  max-width: 1100px;         /* Максимальная ширина всей сетки */
  margin: 25px auto;         /* Отцентрировать и вертикальный отступ сверху */
  padding: 0 20px;           /* Отступы слева и справа по 20px */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}


.user-card {
  background: #fff;
  padding: 18px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: box-shadow 0.3s ease;
}

.user-card:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.user-card h3 {
  margin-bottom: 10px;
  color: #333;
}

.user-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.status-online {
  color: #28a745;
  font-weight: 700;
}

.status-offline {
  color: #dc3545;
  font-weight: 700;
}

.btn-primary {
  padding: 8px 15px;
  font-weight: 600;
  background-color: #007bff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}
.user-tasks-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.user-tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.user-tasks-header h2 {
  font-size: 24px;
  color: #333;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 0 20px;
}

.user-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.user-card:hover {
  transform: translateY(-4px);
}

.status-online {
  color: green;
  font-weight: bold;
}

.status-offline {
  color: gray;
  font-weight: bold;
}

.no-users {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
}
/* admin_chat_detail */
/* ===== Chat LIST page (список чатов) ===== */
.chatlist-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.chatlist-heading {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.chatlist-btn-back {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 20px;
    background-color: #007BFF;
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 2px 6px rgba(0,123,255,0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.chatlist-btn-back:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0,86,179,0.6);
}

.chatlist-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.chatlist-user-card {
    background: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chatlist-user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.chatlist-user-avatar {
    background-color: #007BFF;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 60px;
    margin-bottom: 10px;
    user-select: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatlist-user-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.chatlist-empty {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-top: 40px;
}
.unread-badge {
    background-color: #e74c3c;
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: bold;
}
/* ===== Chat PAGE (конкретный чат) ===== */
.chatpage-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.chatpage-heading {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}
.chatpage-heading span {
    color: #2980b9;
}

.chatpage-btn-back {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 20px;
    background-color: #007BFF;
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 2px 6px rgba(0,123,255,0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.chatpage-btn-back:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0,86,179,0.6);
}

.chatpage-chat-box {
    max-height: 450px;
    overflow-y: auto;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.chatpage-message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chatpage-message.sent {
    background-color: #d4edda;
    margin-left: auto;
    align-items: flex-end;
    text-align: right;
}

.chatpage-message.received {
    background-color: #f1f0f0;
    margin-right: auto;
    align-items: flex-start;
    text-align: left;
}

.chatpage-sender {
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 5px;
}

.chatpage-timestamp {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
}

.chatpage-empty {
    text-align: center;
    color: #888;
    padding: 20px 0;
    font-style: italic;
}

.chatpage-chat-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-top: 10px;
}

.chatpage-chat-form textarea {
    flex-grow: 1;
    min-height: 60px;
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    box-sizing: border-box;
}

.chatpage-btn-send {
    padding: 10px 24px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.chatpage-btn-send:hover {
    background-color: #218838;
    box-shadow: 0 4px 12px rgba(33, 136, 56, 0.4);
}
/* Чат юзера с админом */
/* ===== Контейнер и заголовок ===== */
.chat-admin-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.chat-admin-heading {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}
.chat-admin-heading span {
    color: #2c3e50;
}

/* ===== Сообщения чата ===== */
.chat-admin-messages {
    max-height: 450px;
    overflow-y: auto;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.chat-admin-message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.chat-admin-message.sent {
    margin-left: auto;
    align-items: flex-end;
}

.chat-admin-message.received {
    margin-right: auto;
    align-items: flex-start;
}

.chat-admin-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    background-color: #dcf8c6;
}
.chat-admin-message.received .chat-admin-bubble {
    background-color: #f1f0f0;
}

.chat-admin-sender {
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 5px;
}
.chat-admin-text {
    margin: 0;
}
.chat-admin-timestamp {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
}

.chat-admin-empty {
    text-align: center;
    color: #888;
    padding: 20px 0;
    font-style: italic;
}

/* ===== Форма и кнопка отправки ===== */
.chat-admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.chat-admin-form textarea {
    min-height: 60px;
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    box-sizing: border-box;
}

/* Используем уже существующий стиль кнопки отправки */
.chatpage-btn-send {
    align-self: flex-end;
    padding: 10px 24px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.chatpage-btn-send:hover {
    background-color: #218838;
    box-shadow: 0 4px 12px rgba(33, 136, 56, 0.4);
}

/* ===== Синяя кнопка назад (общая) ===== */

/* КНОПКА архив с админом */
.chat-admin-heading {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #444;
}

.chat-admin-heading span {
  display: inline-flex;
  align-items: center;
  background: #d1ecf1;
  color: #0c5460;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 1rem;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.2);
}

.chat-admin-heading span::before {
  content: "👤"; /* иконка пользователя */
  margin-right: 6px;
  font-size: 1.2rem;
}
/* Чат пользователь - модератор */
.chat-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px 40px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
}

.chat-container .username {
  color: #2980b9;
}

.chat-messages {
  border: 1px solid #d1dff7;
  border-radius: 10px;
  padding: 15px;
  height: 300px;
  overflow-y: scroll;
  background-color: #f9fbff;
  margin-bottom: 20px;
}

.message-item {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 12px;
  max-width: 75%;
  word-wrap: break-word;
}

.message-sent {
  background-color: #d0eaff;
  margin-left: auto;
  text-align: right;
}

.message-received {
  background-color: #e8f0ff;
  margin-right: auto;
  text-align: left;
}

.message-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #2c3e50;
}

.timestamp {
  color: #7f8c8d;
  font-size: 0.75rem;
}

.message-body {
  font-size: 1rem;
  color: #34495e;
}

.no-messages {
  font-style: italic;
  color: #7f8c8d;
  text-align: center;
  margin-top: 50px;
  font-size: 1.1rem;
}

.message-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1dff7;
  padding: 10px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 60px;
  margin-bottom: 10px;
}
.btn-send {
    background-color: #27ae60;
    color: white;
    padding: 10px 24px; /* чуть больше по горизонтали для баланса */
    border-radius: 25px; /* овальная форма */
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-send:hover {
    background-color: #1e8449;
}
/* Чат модер - пользователь */
.moderator-chat-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 25px 35px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
}

.moderator-chat-messages {
    border: 1px solid #ccc;
    padding: 10px;
    height: 400px;
    overflow-y: scroll;
    background: #fefefe;
    border-radius: 10px;
    margin-bottom: 15px;
}

.message {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.sent {
    background-color: #d1f0d1;
    align-self: flex-end;
}

.message.received {
    background-color: #f0f0f0;
    align-self: flex-start;
}

.moderator-chat-form {
    display: flex;
    flex-direction: column;
}

.btn-send {
    background-color: #27ae60;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: 5px;
    width: fit-content;
}

.btn-send:hover {
    background-color: #1e8449;
}
.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    color: #2980b9;
    border: 2px solid #2980b9;
    background-color: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: fit-content;
}

.btn-back:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
}
.moderator-chat-actions {
    margin-top: 15px;
}

.btn-send {
    background-color: #27ae60;  /* зеленая */
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-send:hover {
    background-color: #1e8449;
}

.btn-archive-chat {
    background-color: #c0392b; /* красная для архива */
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-archive-chat:hover {
    background-color: #922b21;
}
.btn-archive-view {
    display: inline-block;
    background-color: #3498db; /* синий */
    color: white;
    padding: 8px 18px;
    font-size: 16px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.btn-archive-view:hover {
    background-color: #2980b9;
}

.btn-send {
    background-color: #4CAF50; /* зеленый */
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-send:hover {
    background-color: #45a049;
}

.btn-archive-send {
    background-color: #f39c12; /* оранжевый */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-archive-send:hover {
    background-color: #d68910;
}
/* архивный чат модератора и юзера */
.archived-chat-container {
    max-width: 800px;
    margin: 30px auto;
    background-color: #fdfdfd;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.archived-chat-title {
    text-align: center;
    font-size: 26px;
    color: #333;
    margin-bottom: 20px;
}

.archived-chat-messages {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    height: 400px;
    overflow-y: scroll;
    background-color: #fafafa;
}

.message {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
}

.message.sent {
    align-self: flex-end;
    background-color: #e0ffe0;
    border: 1px solid #b5e7b5;
}

.message.received {
    align-self: flex-start;
    background-color: #f0f0ff;
    border: 1px solid #c6c6ff;
}

.message-content p {
    margin: 5px 0;
}

.message-content small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.no-archived-messages {
    text-align: center;
    color: #888;
    font-style: italic;
}


/* Админ модератор лист */
.admin-moderators-container {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center; /* Центрирует заголовки и прочее */
}

.moderators-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Центрирует карточки */
    gap: 20px;
    margin-top: 20px;
}


.moderator-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.moderator-card h3 {
    margin-bottom: 8px;
}

.moderator-email {
    margin-bottom: 12px;
    color: #555;
    font-size: 14px;
}

.text-muted {
    color: #999;
}

.btn-chat {
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.btn-chat:hover {
    background-color: #0056b3;
}
/* Просмотр архив чата модера и пользователя */
.archive-chat-container {
  max-width: 720px;
  margin: 30px auto;
  padding: 25px 30px;
  background: #fefefe;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
}

.archive-chat-title {
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
  text-align: center;
}

.archive-chat-messages {
  background-color: #f4f6f8;
  border: 1.5px solid #dcdde1;
  border-radius: 10px;
  padding: 20px;
  height: 420px;
  overflow-y: auto;
  margin-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: #3498db #e0e5ec;
}

.archive-chat-messages::-webkit-scrollbar {
  width: 8px;
}
.archive-chat-messages::-webkit-scrollbar-track {
  background: #e0e5ec;
}
.archive-chat-messages::-webkit-scrollbar-thumb {
  background-color: #3498db;
  border-radius: 8px;
  border: 2px solid #e0e5ec;
}

.archive-chat-message {
  margin-bottom: 16px;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.5;
  max-width: 75%;
  word-wrap: break-word;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.archive-chat-message.sent {
  background-color: #3498db;
  color: white;
  margin-left: auto;
  border-radius: 20px 20px 0 20px;
}

.archive-chat-message.received {
  background-color: #dcdde1;
  color: #2d3436;
  margin-right: auto;
  border-radius: 20px 20px 20px 0;
}

.message-content {
  font-weight: 500;
}

.message-timestamp {
  font-size: 12px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
}

.archive-chat-message.received .message-timestamp {
  color: rgba(0, 0, 0, 0.5);
}

.no-messages {
  font-style: italic;
  color: #7f8c8d;
  text-align: center;
  padding: 20px 0;
}

.archive-back-btn {
  display: inline-block;
  padding: 10px 20px;
  font-weight: 600;
  background-color: #3498db;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.archive-back-btn:hover {
  background-color: #2471a3;
  text-decoration: none;
}



/* Просмотр чата модера - пользователя */
.admin-chat-detail-container-unique {
  max-width: 720px;
  margin: 30px auto;
  padding: 25px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}

.admin-chat-detail-container-unique h2 {
  margin-bottom: 25px;
  font-weight: 700;
  color: #34495e;
  border-bottom: 3px solid #2980b9;
  padding-bottom: 10px;
  text-align: center;
}

.chat-messages-unique {
  height: 430px;
  overflow-y: auto;
  background: #f5f7fa;
  border: 1.5px solid #d1d8e0;
  border-radius: 10px;
  padding: 18px 22px;
  box-sizing: border-box;
  margin-bottom: 25px;
  scrollbar-width: thin;
  scrollbar-color: #2980b9 #e0e5ec;
}

.chat-messages-unique::-webkit-scrollbar {
  width: 8px;
}

.chat-messages-unique::-webkit-scrollbar-track {
  background: #e0e5ec;
  border-radius: 8px;
}

.chat-messages-unique::-webkit-scrollbar-thumb {
  background-color: #2980b9;
  border-radius: 8px;
  border: 2px solid #e0e5ec;
}

.message-unique {
  max-width: 70%;
  padding: 14px 20px;
  margin-bottom: 14px;
  border-radius: 24px;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 3px 9px rgba(0,0,0,0.08);
}

/* Сообщения модератора — справа, синие */
.message-unique.sent-unique {
  background-color: #2980b9;
  color: #fff;
  margin-left: auto;
  border-radius: 24px 24px 0 24px;
}

/* Сообщения пользователя — слева, светло-серые */
.message-unique.received-unique {
  background-color: #dfe6e9;
  color: #2d3436;
  margin-right: auto;
  border-radius: 24px 24px 24px 0;
}

.message-unique small {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

.message-unique.received-unique small {
  color: rgba(45, 52, 54, 0.6);
}

.form-message-unique {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.form-message-unique textarea,
.form-message-unique input[type="text"] {
  flex-grow: 1;
  min-height: 38px;
  padding: 10px 12px;
  font-size: 15px;
  border: 1.5px solid #b2bec3;
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

.btn-send-unique {
  background-color: #2980b9;
  border: none;
  color: white;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 120px;
}

.btn-send-unique:hover {
  background-color: #1c5980;
}

.form-archive-unique {
  margin-bottom: 15px;
}

.btn-archive-unique {
  background-color: #e74c3c;
  border: none;
  color: white;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-archive-unique:hover {
  background-color: #b7372a;
}

.btn-archive-list-unique {
  display: inline-block;
  margin-bottom: 25px;
  background-color: #95a5a6;
  color: white !important;
  padding: 10px 22px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-archive-list-unique:hover {
  background-color: #7f8c8d;
  text-decoration: none;
}

.btn-back-unique {
  display: inline-block;
  font-weight: 600;
  color: #2980b9 !important;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid #2980b9;
  border-radius: 7px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-back-unique:hover {
  background-color: #2980b9;
  color: #fff !important;
  text-decoration: none;
}
/* Выбор чата модера */
.moderator-chat-users-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 25px;
  background: #fefefe;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.moderator-chat-users-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 3px solid #3498db;
  padding-bottom: 8px;
  color: #2c3e50;
}

.moderator-chat-user-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.moderator-chat-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ecf0f1;
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: background-color 0.2s ease;
}

.moderator-chat-user-item:hover {
  background-color: #dce3e6;
}

.moderator-chat-user-icon {
  margin-right: 10px;
  font-size: 18px;
}

.moderator-chat-username {
  flex-grow: 1;
  color: #34495e;
  font-size: 16px;
}

.moderator-chat-open-btn {
  background-color: #3498db;
  color: white;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.moderator-chat-open-btn:hover {
  background-color: #2980b9;
}

.moderator-no-users {
  font-style: italic;
  color: #7f8c8d;
}

.moderator-back-btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #7f8c8d;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.moderator-back-btn:hover {
  background-color: #636e72;
}

/*  Админ лист для юзера */
.admin-selection-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px 30px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-selection-container h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-list li {
  margin-bottom: 15px;
}

.admin-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  color: #333;
}

.admin-link:hover {
  background-color: #007bff;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,123,255,0.5);
}

.admin-avatar {
  width: 40px;
  height: 40px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  user-select: none;
}

.admin-username {
  flex-grow: 1;
  font-size: 16px;
}

.chat-icon {
  font-size: 20px;
  margin-left: 10px;
}

.no-admins {
  text-align: center;
  color: #777;
  font-style: italic;
  margin-top: 20px;
}
