body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    /* width: 95%; */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 4px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    overflow-x: hidden;
    /* Предотвращает появление горизонтального скролла на странице */
}

h1 {
    color: #2c3e50;
    margin-top: 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    font-size: 24px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
    color: #ffffff;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 16px;
}

.button-group {
    margin: 15px 0;
}

.button-primary {
    background-color: #2ecc71;
    color: var(--light-color) !important;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 0;
    transition: background-color 0.3s;
}

.button-primary:disabled {
    background-color: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #f3f4f6 !important;
    cursor: not-allowed;
    opacity: 1;
}

.button-primary:disabled:hover {
    background-color: #9ca3af !important;
}

.button-secondary {
    background-color: #3498db;
    color: var(--light-color) !important;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s;
}

.button-primary:hover {
    background-color: #27ae60;
}

/* .button-secondary:hover {
    background-color: #2980b9;
    color: var(--light-color)!important;
} */

/* Стили для textarea */
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s;
    line-height: 1.5;
}

textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Стили для таблиц */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-y: visible;
    /* Предотвращаем вертикальный скролл */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th,
table td {
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
}

/* Стили для заголовка таблицы */
table thead tr {
    background-color: #f5f7fa;
    color: #333;
    font-weight: 600;
}

table th {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Чередование цветов строк */
table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Эффект при наведении на строку */
table tbody tr:hover {
    background-color: #f0f8ff;
}

/* Ширина колонок */
.checkbox-column {
    width: 30px;
    text-align: center;
}

.id-column {
    width: 40px;
    text-align: center;
}

.avatar-column {
    width: 50px;
    text-align: center;
}

.nickname-column {
    width: 120px;
}

.name-column {
    width: 120px;
}

.email-column {
    width: 180px;
}

.phone-column {
    width: 120px;
}

.country-column {
    width: 120px;
}

.city-column {
    width: 120px;
}

.actions-column {
    width: 100px;
    text-align: center;
}

/* Стили для аватара в таблице */
.avatar-cell {
    text-align: center;
    width: 50px;
}

.user-avatar-thumbnail {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Стили для кнопок действий */
.actions {
    white-space: nowrap;
    width: 80px;
    text-align: center;
}

/* Улучшенные стили для кнопок действий в таблице */
.actions .action-button {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin: 2px;
    text-align: center;
    border-radius: 4px;
    line-height: 32px;
    /* Выравнивание иконки по центру */
    font-size: 16px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    background-color: transparent;
    border: none;
    transition: color 0.3s;
}

.actions .action-button:hover {
    color: #3498db;
    /* Цвет иконки при наведении */
}

.action-edit {
    color: #3498db;
    /* Цвет иконки "Редактировать" */
}

.action-edit:hover {
    color: #2980b9;
    /* Цвет при наведении */
}

.action-delete {
    color: #e74c3c;
    /* Цвет иконки "Удалить" */
}

.action-delete:hover {
    color: #c0392b;
    /* Цвет при наведении */
}

/* Убираем стили для подсказок */
.action-button .tooltip {
    display: none;
    /* Полностью скрываем tooltip */
}

/* Исправляем стили для table-container, чтобы убрать скролл */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-y: visible;
    /* Предотвращаем вертикальный скролл */
}

/* Стили для кнопок на странице профиля */
.profile-actions .action-button {
    width: 40px;
    /* Увеличиваем размер кнопок */
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    /* Увеличиваем размер иконок */
    margin: 5px;
}

/* Убираем заливку и добавляем прозрачность */
.profile-actions .action-button {
    background-color: transparent;
    border: none;
    color: #333;
}

.profile-actions .action-button:hover {
    color: #3498db;
    /* Цвет при наведении */
}

/* Общие сообщения */
.message {
    padding: 15px;
    margin: 20px 0;
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    color: #495057;
}

/* Стили для уведомления о модерации */
.moderation-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    color: #856404;
}

.moderation-notice p {
    margin: 0;
    font-size: 16px;
}

.moderation-notice strong {
    color: #d68910;
}

.moderation-notice i {
    margin-right: 8px;
    color: #f39c12;
}

/* Стили для сообщений с возможностью закрытия */
.success-message,
.error-message {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.message-content {
    flex-grow: 1;
}

.close-message {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    padding: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-message:hover {
    opacity: 1;
}

.countdown {
    display: block;
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 5px;
}

/* Стили для карточек на главной странице */
.feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.card {
    flex: 1 0 300px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f5f7fa;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h2 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.card-body {
    padding: 20px;
    background-color: white;
}

.card-body p {
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
}

/* Информация о приложении */
.app-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #777;
}

.app-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Стили для формы поиска */
.search-form {
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-button {
    padding: 4px 8px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #2980b9;
}

/* Стиль для группы кнопок в строке */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Адаптивность для кнопок в строке */
@media (max-width: 600px) {
    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .button-row button,
    .button-row a {
        margin-left: 0 !important;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .search-container {
        flex-direction: column;
    }

    .search-input,
    .search-button {
        width: auto;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 22px;
    }

    .feature-cards {
        flex-direction: column;
    }

    .card {
        flex: none;
        margin-bottom: 15px;
    }

    .button-primary,
    .button-secondary,
    .button-danger {
        display: block;
        text-align: center;
        /* margin-bottom: 10px; */
    }

    .actions {
        display: flex;
        flex-direction: column;
    }

    .actions a {
        margin-bottom: 5px;
    }

    input[type="text"],
    input[type="email"] {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        width: 100%;
    }

    table th,
    table td {
        padding: 8px;
    }
}

/* Стили для полей ввода телефона */
input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="tel"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Стили для полей даты */
input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="date"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Группировка полей формы */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1 0 calc(50% - 10px);
    min-width: 250px;
}

/* Стили для полей с информацией о пользователе */
.user-info-section {
    margin-top: 20px;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.section-title {
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 18px;
}

/* Стили для чекбоксов */
.checkbox-column {
    width: 40px;
    text-align: center;
}

table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Стили для массовых действий */
.bulk-actions {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

/* Стили для пагинации */
.pagination {
    margin: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.page-link {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #3498db;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-link.current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    cursor: default;
}

.page-ellipsis {
    display: inline-block;
    margin: 0 3px;
}

/* Стили для input элементов в пагинации */
.pagination-goto-input,
.page-input {
    width: 60px;
    padding: 4px 8px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
    height: 22px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pagination-goto-input:focus,
.page-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.pagination-goto-input:hover,
.page-input:hover {
    border-color: #bbb;
}

/* Стили для кнопки "Перейти" в пагинации */
.page-go,
.pagination-goto-button {
    padding: 5px 12px;
    margin: 0 5px;
    border: 1px solid #3498db;
    border-radius: 3px;
    background-color: #3498db;
    color: white;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.page-go:hover,
.pagination-goto-button:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Стили для формы пагинации */
.page-form,
.pagination-goto-form {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0 5px;
    padding: 0;
    vertical-align: middle;
}

/* Стили для статистики пользователей */
.users-stats {
    margin: 15px 0;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    color: #333;
}

.users-stats strong {
    color: #2980b9;
}

/* Стили для блока инструкций импорта */
.import-instructions {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
}

.import-instructions h3 {
    margin-top: 0;
    color: #2c3e50;
}

.import-instructions ol {
    padding-left: 20px;
}

.import-instructions li {
    margin-bottom: 8px;
}

/* Стили для поля загрузки файла */
input[type="file"] {
    width: auto;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
}

/* Стили для фильтрации */
.filter-container {
    background-color: #f8f9fa;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.filter-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.filter-actions {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

select {
    /* width: 100%; */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s;
}

select:focus {
    border-color: #3498db;
    outline: none;
}

.reset-filter {
    margin-left: 15px;
    color: #e74c3c;
    text-decoration: underline;
}

.reset-filter:hover {
    color: #c0392b;
}

/* Стили для страницы профиля пользователя */
.profile-card {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-header {
    padding: 20px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-direction: column;
}

.profile-section {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #3498db;
    font-size: 18px;
}

.profile-data {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.data-row {
    display: flex;
    flex-wrap: wrap;
}

.data-label {
    /* width: 150px; */
    font-weight: 600;
    color: #555;
}

.data-value {
    flex: 1;
    min-width: 200px;
}

.profile-about {
    line-height: 1.6;
    color: #333;
}

/* Стили для ссылки на никнейм */
.nickname-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nickname-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Стили для аватарок */
.avatar-preview {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    /*10px*/
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-input {
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.user-avatar-thumbnail {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-cell {
    text-align: center;
    width: 50px;
}

/* Стили для профиля с аватаркой */
.user-info-with-avatar {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Адаптивность для профиля */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-actions {
        margin-top: 15px;
    }

    .data-label {
        /* width: 100%; */
        margin-bottom: 5px;
    }

    .data-value {
        width: 100%;
        padding-left: 10px;
    }
}

/* Адаптивность для профиля с аватаром */
@media (max-width: 768px) {
    .user-info-with-avatar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-actions {
        margin-top: 20px;
    }
}

/* Исправленные стили для шапки сайта */
body {
    padding: 0;
    /* Убираем отступ, создающий белую полосу по краям */
}

.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Меняем с sticky на relative, чтобы избежать конфликтов */
    z-index: 1000;
    padding: 10px 0;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 5px 0;
}

/* Стили для логотипа */
.logo h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    color: #333;
    border: none;
}

.logo span {
    color: #3498db;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* Стили для главной навигации */
.main-nav {
    position: relative;
    overflow: visible;
    /* Важно: чтобы выпадающее меню не обрезалось */
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.main-nav a:hover {
    background-color: #f5f7fa;
    color: #3498db;
}

.main-nav a.active {
    background-color: #3498db;
    color: white;
}

/* Стили для блока действий пользователя */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-welcome {
    padding: 10px 15px;
    background-color: #f5f7fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.user-welcome:hover {
    background-color: #e9ecef;
}

.user-welcome strong {
    color: #3498db;
}

.user-welcome i {
    font-size: 12px;
    color: #777;
    transition: transform 0.2s;
}

.user-dropdown:hover i {
    transform: rotate(0deg);
}

/* Выпадающее меню */
.dropdown-content {
    position: fixed;
    /* Изменено с absolute на fixed для совместимости */
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    width: auto;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 3000;
    /* Увеличен z-index */
    padding: 8px 0;
}

.user-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.dropdown-content i {
    width: 16px;
    text-align: center;
}

/* Стили для остальной части страницы */
.main-content {
    padding: 0;
}

.main-content .container {
    /* background-color: white; */
    border-radius: 4px;
    /* padding: 20px; */
    margin-top: 20px;
}

.main-content .create-container {
    background-color: white;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

/* Исправления для мобильных устройств */
@media (max-width: 992px) {
    .site-header .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: row;
        gap: 5px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .user-actions {
        width: 100%;
        justify-content: center;
    }

    .user-dropdown {
        width: 100%;
    }

    .user-welcome {
        justify-content: center;
    }

    .dropdown-content {
        width: 100%;
    }

    .main-content .container {
        background-color: white;
        border-radius: 4px;
        /* padding: 5px; */
        margin-top: 20px;
    }
}

.form-group.button-group {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

/* =================================
   МОБИЛЬНЫЕ СТИЛИ
   ================================= */

/* Мобильная нижняя навигация и сайдбар */
@media (max-width: 768px) {
    .main-content .create-container {
        background-color: white;
        border-radius: 4px;
        padding: 10px;
        margin-top: 10px;
    }

    .main-nav {
        display: none !important;
    }

    .nav-more-btn {
        display: none !important;
    }

    /* Основной контент */
    .main-content {
        padding-bottom: 70px;
        /* Отступ для нижней навигации */
    }

    .container {
        padding: 15px;
        margin: 0;
    }

    /* Мобильная нижняя навигация */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 60px;
        background: #fff;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
        z-index: 500;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid #e5e5e5;
    }

    /* Мобильный сайдбар */
    .mobile-sidebar {
        display: block !important;
        position: fixed;
        /* top: 0; */
        left: -280px;
        width: 260px;
        height: 95%;
        background: #fff;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
        z-index: 1200;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        padding-top: 0;
    }

    .mobile-sidebar.open {
        left: 0;
    }

    .mobile-sidebar .close-sidebar {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        padding: 5px;
        line-height: 1;
        z-index: 10;
    }

    .mobile-sidebar .close-sidebar:hover {
        color: #333;
    }

    /* Блокировка скролла когда открыт сайдбар */
    body.mobile-sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Список в мобильном сайдбаре */
    .mobile-sidebar ul.mobile-sidebar-menu {
        padding: 0 0 20px 0;
        margin: 0;
        list-style: none;
				/* overflow-y: auto;
        height: 100%; */
    }

    .mobile-sidebar li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-sidebar li:last-child {
        border-bottom: none;
    }

    .mobile-sidebar a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        font-size: 14px;
        color: #374151;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
        border-left: 3px solid transparent;
    }

    .mobile-sidebar a:hover,
    .mobile-sidebar a:active {
        background: #f8f9fa;
        color: #2563eb;
        border-left-color: #2563eb;
    }

    .mobile-sidebar i {
        font-size: 18px;
        min-width: 20px;
        text-align: center;
        color: #6b7280;
    }

    .mobile-sidebar a:hover i {
        color: #2563eb;
    }

    /* Overlay для сайдбара */
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1150;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    body.mobile-sidebar-open .mobile-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Заголовки */
    h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 18px;
    }

    /* Кнопки */
    .button-primary,
    .button-secondary,
    .button-danger {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        padding: 12px 16px;
        font-size: 16px;
    }

    /* Формы */
    .form-group {
        margin-bottom: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px;
        /* Предотвращает зум на iOS */
        padding: 12px;
    }

    /* Таблицы */
    table {
        font-size: 14px;
    }

    /* Модальные окна и выпадающие меню */
    .dropdown-content {
        position: fixed !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Скрыть иконку языка в мобильной версии */
    .language-icon {
        display: none;
    }

    /* Адаптивные стили для пагинации */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin: 20px 0;
    }

    .page-link {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
        text-align: center;
    }

    .pagination-goto-input,
    .page-input {
        width: 50px;
        padding: 4px 6px;
        font-size: 13px;
    }

    .page-go {
        padding: 4px 8px;
        font-size: 18px;
    }

    .page-form,
    .pagination-goto-form {
        /* padding: 4px 8px; */
        gap: 2px;
    }
}

/* По умолчанию скрываем мобильные элементы на десктопе */
.mobile-bottom-nav,
.mobile-sidebar,
.mobile-sidebar-overlay {
    display: none;
}

/* Исключение для мобильного сайдбара - он должен быть доступен на всех устройствах */
.mobile-sidebar {
    display: none;
}

/* Стили для мобильной нижней навигации */
.mobile-bottom-nav a,
.mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 4px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    min-width: 0;
    flex: 1;
    border-radius: 8px;
    margin: 2px;
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav button:hover,
.mobile-bottom-nav a:active,
.mobile-bottom-nav button:active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.mobile-bottom-nav i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-bottom-nav span {
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
}

/* Дополнительные адаптивные стили для очень маленьких экранов */
@media (max-width: 480px) {}

/* Стили для кнопки жалобы */
.report-button {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    transition: all 0.3s ease;
}

.report-button:hover {
    background-color: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

/* Модальное окно для жалоб */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    background-color: #f8f9fa;
}

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

.modal-close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

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

.modal-body {
    padding: 24px;
}

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

.modal-body label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

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

.char-counter {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    text-align: right;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-actions .button-secondary,
.form-actions .button-primary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.form-actions .button-secondary {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.form-actions .button-secondary:hover {
    background-color: #e9ecef;
    color: #495057;
}

.form-actions .button-primary {
    background-color: #3498db;
    color: white;
}

.form-actions .button-primary:hover {
    background-color: #2980b9;
}

.form-actions .button-primary:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Универсальная система уведомлений */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    max-width: 350px;
    width: auto;
    /* Предотвращаем overflow */
    box-sizing: border-box;
}

.notification {
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    max-width: 350px;
    word-wrap: break-word;
    pointer-events: auto;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.warning {
    background: #ffc107;
    color: #212529;
}

.notification.info {
    background: #17a2b8;
}

.notification i {
    font-size: 16px;
    flex-shrink: 0;
}

.notification-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Адаптивность для уведомлений */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
    
    .notification {
        max-width: none;
        margin-bottom: 8px;
    }
}

/* Предотвращение overflow на больших экранах */
@media (min-width: 1200px) {
    .notification-container {
        right: max(20px, calc((100vw - 1200px) / 2 + 20px));
    }
}

/* Анимация появления */
@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.slide-in {
    animation: notificationSlideIn 0.3s ease-out;
}

/* Стили для обязательных полей в форме жалобы */
.modal-body label[for="report-description"]:after {
    content: " *";
    color: #d32f2f;
    font-weight: bold;
}

.modal-body textarea[required] {
    border-left: 3px solid #e0e0e0;
    transition: border-left-color 0.3s ease;
}

.modal-body textarea[required]:focus {
    border-left-color: #3498db;
}

.modal-body textarea[required]:invalid {
    border-left-color: #d32f2f;
}

.modal-body textarea[required]:valid {
    border-left-color: #4caf50;
}

/* Стили для сообщений валидации */
.validation-error {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.validation-success {
    color: #4caf50;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
@media (max-width: 480px) {}

/* Стили для кнопок истории модерации */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-edit:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
}

.btn-history {
    background-color: #9b59b6;
    color: white;
}

.btn-history:hover {
    background-color: #8e44ad;
    color: white;
    text-decoration: none;
}

.btn-resubmit {
    background-color: #f39c12;
    color: white;
}

.btn-resubmit:hover {
    background-color: #e67e22;
    color: white;
    text-decoration: none;
}

.btn-primary {
    background-color: #2ecc71;
    color: white;
}

.btn-primary:hover {
    background-color: #27ae60;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: #95a5a6;
    color: #666666;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    color: #666666;
    text-decoration: none;
}

.btn-admin {
    background-color: #e74c3c;
    color: white;
}

.btn-admin:hover {
    background-color: #c0392b;
    color: white;
    text-decoration: none;
}

/* ================================
   КНОПКА "НАВЕРХ"
   ================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f99);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(52, 152, 219, 0.3);
}

input#images {
    width: auto;
}

div#images-preview {
    margin-bottom: 15px;
}

main.main-content>.container>.content-card>.feature-cards>.card>.card-body>a.button-secondary {
    display: inline-flex;
}

main.main-content>.container>.content-card>.feature-cards>.card>.card-body>a.button-primary {
    width: auto;
}

.form-group.button-group {
    display: initial;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {

    .create-container>form>.form-group.button-group>button.button-primary,
    button.button-secondary {
        width: auto;
    }

    .scroll-to-top {
        bottom: 65px;
        right: 5px;
        width: 25px;
        height: 25px;
        font-size: 16px;
        opacity: 0.7 !important;
        background: #05254e;

    }

    .site-header {
        margin-bottom: 0;
    }

    .card-body {
        padding: 20px;
        background-color: white;
        gap: 5px !important;
        display: flex;
        flex-direction: column;
    }

    /* .form-group input,
    .form-group textarea {
        width: auto !important;
        padding: 10px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        font-size: 16px;
    } */
}

@media (max-width: 480px) {

    .scroll-to-top {
        bottom: 65px;
        right: 5px;
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .main-content .create-container {
        padding: 0;
        margin-top: 10px;
    }


    .container {
        padding: 10px;
    }

    h1 {
        font-size: 18px;
    }

    .button-primary,
    .button-secondary,
    .button-danger {
        padding: 10px 14px;
        font-size: 15px;
    }

    .mobile-bottom-nav {
        height: 55px;
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        padding: 4px 2px !important;
    }

    .mobile-bottom-nav span {
        font-size: 10px !important;
    }

    .mobile-sidebar {
        width: 240px;
        left: -250px;
    }

    .create-container>form>.form-group.button-group>button.button-primary,
    button.button-secondary {
        width: 100%;
    }

    .form-group.button-group>button.button-primary,
    button.button-secondary {
        width: 100%;
    }

    .form-group.button-group {
        gap: 0;
    }
}
/* Styles for clickable like counts */
.likes-count-clickable,
.dislikes-count-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 3px;
    padding: 2px 4px;
    margin-left: 2px;
}

.likes-count-clickable:hover,
.dislikes-count-clickable:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: scale(1.05);
}

.likes-readonly .likes-count-clickable,
.likes-readonly .dislikes-count-clickable {
    color: #666;
    font-weight: 500;
}

.likes-readonly .likes-count-clickable:hover,
.likes-readonly .dislikes-count-clickable:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}


/*даптивность для модального окна */ 
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header,
    .modal-body {
        padding: 16px;
    }

    .form-actions {
        flex-direction: column;
        gap: 8px;
    }

    .form-actions .button-secondary,
    .form-actions .button-primary {
        width: 100%;
        text-align: center;
    }
}

/* Стили для article-footer с кнопкой жалобы */
.article-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .article-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .article-actions .button-secondary,
    .article-actions .report-button {
        text-align: center;
        justify-content: center;
    }
}

/* Специальные стили для уведомлений Instagram с HTML */
.notification .notification-content {
    line-height: 1.4;
}

.notification .notification-content strong {
    display: block;
    margin-bottom: 4px;
}

.notification .notification-content small {
    opacity: 0.9;
    font-size: 11px;
    line-height: 1.3;
}

.notification.instagram-notification {
    max-width: 300px;
    padding: 16px 20px;
}

@media (max-width: 768px) {
    .notification.instagram-notification {
        max-width: none;
        font-size: 14px;
    }
    
    .notification .notification-content small {
        font-size: 12px;
    }
}