/* Основные стили для административной панели */
body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Верхняя навигационная панель */
.admin-topbar {
    border-bottom: 1px solid #dee2e6;
}

/* Шапка административных страниц */
.admin-header {
    background-color: #343a40;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-header h1 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

/* Основные стили админки */
.admin-page {
    background-color: #f8f9fa;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
}

/* Современная шапка админ-панели */
.admin-sidebar {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 0;
    width: 250px;
    position: fixed;
    height: 100%;
    overflow: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.admin-sidebar-header {
    padding: 25px 20px;
    background: #1a252f;
    border-bottom: 1px solid #34495e;
}

.admin-sidebar-header h1 {
    margin: 0;
    font-size: 1.4rem;
    color: #3498db;
    font-weight: 600;
}

.admin-sidebar-header p {
    margin: 5px 0 0;
    color: #95a5a6;
    font-size: 0.8rem;
}

.admin-nav {
    margin: 0;
    padding: 0;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav li {
    margin: 0;
    padding: 0;
}

.admin-nav a {
    padding: 15px 20px;
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.admin-nav a:hover, .admin-nav a.active {
    background: #34495e;
    border-left-color: #3498db;
    color: #fff;
}

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

/* Основной контент рядом с сайдбаром */
.admin-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s;
}

/* Панель приветствия */
.admin-welcome-panel {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.admin-welcome-panel h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.admin-welcome-panel p {
    margin: 10px 0 0;
    opacity: 0.9;
}

/* Карточки дашборда */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.dashboard-card h3 {
    margin-top: 0;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card h3 i {
    color: #3498db;
}

.dashboard-card .stats-number {
    font-size: 32px;
    font-weight: 700;
    margin: 15px 0;
    color: #2c3e50;
}

.dashboard-card a {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
}

.dashboard-card a:hover {
    text-decoration: underline;
}

/* Карточки статистики */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    transition: transform 0.3s ease;
}

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

.stats-icon {
    background: #f0f0f0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: #343a40;
}

.stats-info {
    flex: 1;
}

.stats-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 16px;
    color: #555;
}

.stats-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stats-card.highlight {
    border-left: 4px solid #ffc107;
}

.stats-card.highlight .stats-icon {
    background-color: #fff3cd;
    color: #856404;
}

/* Меню администратора */
.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.admin-menu-item {
    background: white;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #343a40;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    color: #3498db;
    text-decoration: none;
}

.admin-menu-item i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Таблицы данных */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    display: block;
    overflow-x: auto;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.admin-table th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: #495057;
}

.admin-table tr:nth-child(even) {
    background-color: #f8f9fa;
}


.article-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.article-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
}

.article-stats .stat-item i {
    width: 12px;
    font-size: 10px;
}

/* Формы в админке */
.admin-form {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Кнопки */
.button-primary-admin,
.button-secondary,
.button-danger,
.button-info {
    display: inline-block;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    width: fit-content;
}

.button-primary-admin {
    background-color: #46fd09ba;
    color: white;
}

/* .button-secondary {
    background-color: #ebebeb;
    color: rgb(45, 45, 45);
} */

.button-danger {
    background-color: #dc3545;
    color: white;
}

.button-info {
    background-color: #17a2b8;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.button-primary-admin:hover {
    background-color: #0069d9;
    color: white;
}

.button-secondary:hover {
    background-color: #cfcfcf;
    color: rgb(45, 45, 45);
}

.button-danger:hover {
    background-color: #c82333;
    color: white;
}

.button-info:hover {
    background-color: #138496;
    color: white;
    text-decoration: none;
}

button#submit-button {
    display: flex;
    justify-content: center;
    width: fit-content;
}

/* Оповещения */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Статусы */
.status-published {
    background-color: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
}

.status-draft {
    background-color: #e2e3e5;
    color: #383d41;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
}

.status-moderation {
    background-color: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
}

/* Стилизация фильтров */
.admin-filters {
    background-color: #f5f8fa;
    border: 1px solid #dde4e9;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 25px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
    color: #495057;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

.filter-group select {
    height: 40px;
    cursor: pointer;
}

/* Стиль для поля поиска */
.search-group {
    display: flex;
    gap: 10px;
}

.search-group input[type="text"] {
    flex: 1;
    min-width: 250px;
}

/* Кнопки фильтра */
.filter-form button {
    height: 40px;
    padding: 0 20px;
    white-space: nowrap;
}

.filter-form .button-secondary {
    padding: 4px 8px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    background-color: #6c757d;
    color: white;
    border: none;
    font-size: 14px;
    width: fit-content;
}

.filter-form .button-secondary:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
}

/* Сбросить все фильтры */
.reset-filters {
    display: inline-block;
    padding: 4px 8px;
    background-color: #6c757d;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
}

.reset-filters:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
}

/* Стрелка указания направления на скрине */
.filter-highlight {
    position: relative;
}

.filter-highlight::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 3px;
    background-color: #dc3545;
}

/* Дополнительные стили для панели управления */
.admin-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1 1 300px;
    min-width: 250px;
}

.dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 18px;
}

/* Стили для административной панели */

/* Навигационное меню админ-панели */
.admin-nav {
    background-color: #f0f8ff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #c8e1ff;
}

.admin-nav a {
    color: #0366d6;
    text-decoration: none;
    margin-right: 15px;
}

.admin-nav a:hover {
    text-decoration: underline;
}

/* Заголовок административной панели */
.admin-title {
    font-size: 1.5rem;
    color: #1a73e8;
    margin-bottom: 15px;
    display: block;
}

/* Список навигации */
.admin-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.admin-nav li {
    margin-bottom: 10px;
}


/* Стили для фильтров */
.admin-filters {
    background-color: #f8f9fa;
    border: 1px solid #dde2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Группа фильтров */
.filter-group {
    margin-bottom: 10px;
}

.filter-group label {
    display: inline-block;
    width: 120px;
    font-weight: 600;
    margin-right: 10px;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 250px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Кнопки фильтрации */
.filter-btn {
    margin-top: 10px;
}

.button-primary-admin {
    background-color: #0aa002;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.button-primary-admin:hover {
    background-color: #0bb302;
}

/* Таблица админ-панели */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.admin-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.article-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.article-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
}

.article-stats .stat-item i {
    width: 12px;
    font-size: 10px;
}

/* Статусы статей */
.status-published, 
.status-draft, 
.status-moderation, 
.status-rejected {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.status-published {
    background-color: #d4edda;
    color: #155724;
}

.status-draft {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-moderation {
    background-color: #fff3cd;
    color: #856404;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Действия с записями */
.admin-actions {
    display: flex;
    gap: 5px;
}

.admin-actions a,
.admin-actions button {
    padding: 5px 10px;
    border-radius: 3px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.admin-actions a:hover,
.admin-actions button:hover {
    background-color: #5a6268;
}

/* Стили для модерации */
.moderation-container {
    margin-top: 20px;
}

.moderation-card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.moderation-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.moderation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.moderation-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

.moderation-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Стили для модального окна */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 4px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.moderation-stats {
    background-color: #f8f9fa;
    border-left: 3px solid #17a2b8;
    padding: 10px 15px;
    margin-bottom: 20px;
}

/* Стили для страниц политики конфиденциальности */
.privacy-content {
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

.privacy-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.privacy-section h2 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.privacy-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.privacy-section li {
    margin-bottom: 8px;
}

.privacy-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #3498db;
    color: #6c757d;
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 0 15px;
    }
    
    .privacy-section h2 {
        font-size: 1.2em;
    }
}

/* Улучшенные стили для админки статей */
.admin-layout-split {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

/* Современная панель фильтров */
.admin-filters {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.admin-filters h3 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: center;
    border: 1px solid #ddd;
    padding: 5px;
    background: #e9f2fa;
}

.filter-group {
    margin-bottom: 0;
}

.filter-group label {
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 2px;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    border-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    background: white;
}

.search-group {
    display: flex;
    gap: 10px;
    grid-column: span 2;
}

.search-group input[type="text"] {
    flex: 1;
    min-width: 250px;
}

.filter-form .button-primary-admin {
    background: white;
    color: #667eea;
    border: 2px solid white;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.filter-form .button-primary-admin:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* Современная таблица */
.admin-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.admin-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 15px;
    font-weight: 600;
    color: #2c3e50;
    border: none;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.article-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.article-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
}

.article-stats .stat-item i {
    width: 12px;
    font-size: 10px;
}

/* Красивые статусы */
.status-published, 
.status-draft, 
.status-pending, 
.status-approved,
.status-rejected {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 5px;
}

.status-published::before {
    content: "✅";
}

.status-draft::before {
    content: "📝";
}

/* .status-pending::before {
    content: "⏳";
}

.status-approved::before {
    content: "✅";
}

.status-rejected::before {
    content: "❌";
} */

/* Улучшенные действия */
.admin-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.admin-actions a,
.admin-actions button {
    padding: 10px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    font-size: 14px;
}

.admin-actions .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-actions .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.admin-actions .button-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.admin-actions .button-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 90, 82, 0.4);
}

/* Статистическая панель */
.admin-stats-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #667eea;
}

.admin-stats-panel h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-stats-panel h3::before {
    content: "📊";
    font-size: 20px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .filter-form {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .search-group {
        grid-column: span 1;
    }
}
/* Адаптивность - компактная боковая панель для небольших экранов */
@media (max-width: 768px) {
    
    .admin-sidebar {
        width: 70px!important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        min-width: 0!important;
    }
    
    .admin-sidebar-header {
        padding: 15px 10px;
        text-align: center;
    }
    
    .admin-sidebar-header h1 {
        font-size: 0;
    }
    
    .admin-sidebar-header h1::first-letter {
        font-size: 1.4rem;
    }
    
    .admin-sidebar-header p {
        display: none;
    }
    
    .admin-nav a {
        padding: 15px;
        text-align: center;
        margin-right: 0;
    }
    
    .admin-nav a span {
        display: none;
    }
    
    .admin-nav i {
        margin: 0;
        font-size: 1.2rem;
    }
    
    .admin-content {
        margin-left: 70px;
    }

    .admin-filters {
        padding: 20px 15px;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-group {
        flex-direction: column;
        grid-column: span 1;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 15px 10px;
        font-size: 13px;
    }
    
    .admin-actions {
        /* flex-direction: column; */
        gap: 5px;
    }
    
    .admin-actions a,
    .admin-actions button {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .admin-table-container {
        border-radius: 10px;
        margin: 0 -10px 20px -10px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .admin-table th:nth-child(n+4),
    .admin-table td:nth-child(n+4) {
        display: none;
    }
}

/* Улучшенная пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e9ecef;
    color: #495057;
}

.pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Анимация загрузки */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-table-container {
    animation: slideInUp 0.6s ease-out;
}

.admin-filters {
    animation: slideInUp 0.4s ease-out;
}

.admin-header > .actions{
    width: auto!important;
}