body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    width: 100%;
    min-height: 100vh;
}

/* Мобильные стили (до 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .top-nav {
        justify-content: space-between;
        width: 100%;
        padding: 10px 0;
    }

    .nav-btn {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .main-nav {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .tickets-table th, 
    .tickets-table td,
    .users-table th,
    .users-table td {
        padding: 8px 2px;
        font-size: 13px;
    }

    .form-container,
    .auth-form {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .ticket-grid {
        grid-template-columns: 1fr;
    }

    .detail-item {
        flex-direction: column;
    }

    .detail-value {
        max-width: 100%;
        text-align: left;
        margin-top: 5px;
    }

    .problem-description {
        max-width: 100%;
    }

    .chat-form {
        flex-direction: column;
    }

    .chat-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .chat-form button {
        width: 100%;
        border-radius: 4px;
    }

    .report-form .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .header-logo {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .system-title {
        font-size: 1.5rem;
    }
}

/* Планшеты (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    .tickets-table th, 
    .tickets-table td,
    .users-table th,
    .users-table td {
        padding: 8px 3px;
        font-size: 14px;
    }

    .ticket-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Общие улучшения для мобильных устройств */
@media (max-width: 1024px) {
    .table-wrapper,
    .tickets-container {
        max-height: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    .nav-user-info {
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    .message {
        max-width: 85%;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    /* Делаем все кнопки блочными и полноразмерными */
    .btn, .nav-btn, .create-btn, .edit-btn, .back-btn, 
    .nonedit-btn, .submit-btn, .nonsubmit-btn, .btn-danger,
    .edit-btnback, .report-bug-button button {
        display: block;
        width: 100%;
        margin: 8px 0;
        padding: 12px 10px;
        box-sizing: border-box;
    }

    /* Кнопки в таблице */
    .tickets-table .btn, 
    .users-table .btn {
        padding: 8px 10px;
        margin: 3px 0;
        font-size: 12px;
    }

    /* Кнопки действий */
    .ticket-actions {
        flex-direction: column;
    }

    .ticket-actions .btn {
        margin-right: 0;
        margin-bottom: 10px;
    }

    /* Кнопка отправки отчета */
    .report-bug-button {
        bottom: 20px;
        right: 20px;
    }

    .report-bug-button button {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* ======================== */
/* АДАПТАЦИЯ ТАБЛИЦЫ ТИКЕТОВ */
/* ======================== */

/* Базовые стили таблицы */
.tickets-table, .users-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    /* Контейнер для таблицы с горизонтальным скроллом */
    .table-wrapper, .tickets-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 15px 0;
        border-radius: 5px;
    }

    /* Сама таблица */
    .tickets-table, .users-table {
        min-width: 600px; /* Фиксированная минимальная ширина */
    }

    /* Заголовки и ячейки */
    .tickets-table th, 
    .tickets-table td,
    .users-table th,
    .users-table td {
        padding: 8px 5px;
        font-size: 12px;
        text-align: center;
    }

    /* Кнопки в строках таблицы */
    .tickets-table .inline-form,
    .users-table .inline-form {
        display: block;
        margin: 5px 0;
    }

    /* Приоритеты в таблице */
    .priority-НИЗКИЙ,
    .priority-СРЕДНИЙ,
    .priority-ВЫСОКИЙ {
        font-size: 11px;
        white-space: nowrap;
    }
}

/* ========================== */
/* ДОПОЛНИТЕЛЬНЫЕ АДАПТАЦИИ */
/* ========================== */

@media (max-width: 768px) {
    /* Формы в таблице */
    .inline-form {
        display: block;
        margin-left: 0;
    }

    /* Чекбоксы */
    .checkbox-label {
        font-size: 13px;
    }

    /* Модальные окна */
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 15px;
    }

    /* Карточки систем */
    .system-card {
        padding: 20px;
    }

    .system-card h2 {
        font-size: 2.5em;
    }
}

/* ======================= */
/* ОСОБЫЕ СЛУЧАИ ДЛЯ IOS */
/* ======================= */
@supports (-webkit-touch-callout: none) {
    /* Улучшаем отзывчивость на iOS */
    .btn, .nav-btn {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Увеличиваем область касания */
    .tickets-table .btn {
        min-height: 36px;
        padding-top: 9px;
        padding-bottom: 9px;
    }
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 5px;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1, h2 {
    color: #2c3e50;
}

header nav {
    display: inline-block;
    float: right;
}

header nav a, header nav span {
    color: #333;
    text-decoration: none;
    margin-left: 15px;
}

.nav-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
    flex: 0 0 auto; /* Добавляем */
    margin: 5px 0; /* Изменяем */
}

.nav-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}
.table-wrapper {
    max-height: 600px;
    overflow-y: auto;
    /* border: 1px solid #e0e0e0; */
    border-radius: 8px;
    /* margin: 20px 0; */
}
.main-nav-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.main-nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
    flex-wrap: wrap;
}

.nav-user-info {
    margin-right: 15px;
    color: #2c3e50;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.create-btn {
    background-color: #3498db;
    color: white;
}

.create-btn:hover {
    background-color: #2980b9;
}

.edit-btn {
    background-color: #f39c12;
    color: white;
    border: none;
}

.back-btn {
    background-color: #f39c12;
    color: white;
    border: none;
}

.nonedit-btn {
    background-color: #f39c12;
    padding: 4px 20px;
    margin-top: 10px;
    color: white;
    border: none;
    cursor: pointer;
}

.edit-btn:hover {
    background-color: #e67e22;
}

.submit-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    cursor: pointer;
}
.nonsubmit-btn {
    background-color: #f39c12;
    color: white;
    border: none;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #27ae60;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

.test-mode-banner {
    background: #ff6b00;
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.tickets-container {
    max-height: 540px; /* Фиксированная высота контейнера */
    overflow-y: auto;  /* Вертикальный скролл */
    /* border: 1px solid #e0e0e0; */
    border-radius: 8px;
    margin: 20px 0;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
    /* margin-top: 20px; */
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative
}

.tickets-table th, .tickets-table td {
    padding: 10px 2px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    border-collapse: collapse;
}

.tickets-table th {
    background-color: #3498db;
    color: #f1f1f1;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tickets-table tr:hover {
    background-color: #f1f1f1;
}

.form-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
    
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-groupcheck label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
    cursor: pointer;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    /* padding: 1px; */
    border: 1px solid #b9b9b9;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    
}

/* Стили для приоритетов */
.priority-НИЗКИЙ {
    color: #2ecc71;
}

.priority-СРЕДНИЙ {
    color: #f39c12;
}

.priority-ВЫСОКИЙ {
    color: #e74c3c;
    font-weight: bold;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

footer {
    /* margin-top: 30px; */
    /* padding: 20px 0; */
    background: #f5f5f5;
    color: #333;
    text-align: center;
}

/* Стили для чата */
.ticket-chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.ticket-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 10px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    max-width: 70%;
}

.my-message {
    background: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.other-message {
    background: #ffffff;
    margin-right: auto;
    border-bottom-left-radius: 0;
    /* box-shadow: 0 1px 1px rgba(0,0,0,0.1); */
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.sender {
    font-weight: bold;
    color: #3498db;
}

.time {
    color: #6c757d;
}

.message-text {
    word-wrap: break-word;
}

.no-messages {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

.chat-form {
    display: flex;
    margin-bottom: 20px;
}

.chat-form input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
}

.chat-form button {
    border-radius: 4px 4px 4px 4px;
    margin-top: 10px;
}

.edit-btnback {
    display: block;
    text-align: center;
    margin-top: 10px;
    background-color: white;
    color: rgb(133, 133, 133);
}

/*стиль для пользователей*/
.users-table {
    width: 100%;
    border-collapse: collapse;
    /* margin-top: 20px; */
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative
}


.users-table th {
    background-color: #3498db;
    color: #f1f1f1;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.users-table th, .users-table td {
    padding: 10px 4px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

/* Делаем таблицы одинаковыми */
.tickets-table, .users-table {
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}

.btn-danger{
    border: none;
    color: white;
    padding: 15px 15px;
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
}

.btn-danger:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
}
.inline-form {
    display: inline-block;
    margin-left: 5px;
}

.form-group small {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 10px;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Стили для телефонного ввода */
input[type="tel"] {
    direction: ltr;
    text-align: left;
}

.systems-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.system-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.system-card h2 {
    font-size: 3.5em;
    margin: 0 0 15px;
}

.system-card h3 {
    margin: 0 0 10px;
    color: var(--primary-color);
}

.system-card p {
    color: #666;
    line-height: 1.5;
}

.placeholder {
    text-align: center;
    padding: 50px;
    background: var(--card-bg);
    border-radius: 8px;
    margin: 50px 0;
}

.placeholder p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* margin-bottom: 30px; */
}

.logo {
    width: 120px;
    height: auto;
}

.system-title {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.systems-description {
    text-align: center;
    /* margin-bottom: 40px; */
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.auth-required {
    text-align: center;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 8px;
    margin: 50px auto;
    max-width: 500px;
}

.auth-required p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
}

.ticket-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.info-block {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-block h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.ticket-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Стили для истории сообщений */
.chat-history {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Детали тикета */
.ticket-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-block {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-block.full-width {
    grid-column: 1 / -1;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-value {
    text-align: right;
    max-width: 70%;
}

/* Стили статусов */
.status-closed {
    color: #28a745;
    font-weight: bold;
}

.priority-high {
    color: #dc3545;
}

.priority-medium {
    color: #ffc107;
}

.priority-low {
    color: #17a2b8;
}

/* Описание проблемы */
.problem-description {
    text-align: left;
    max-width: 70%;
    /* white-space: pre-line; */
    line-height: 1.6;
}

/* История сообщений */
.message-history {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 8px;
}



/* Стили системы отчетов */
.report-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.report-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.submission-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.submission-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.submission-content {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.form-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background: var(--card-bg);
    
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.report-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Кнопка */
.report-bug-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.report-bug-button button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 20px;
    width: 60%;
    border-radius: 8px;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.input-with-checkbox {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* Основное поле ввода */
.input-main {
    flex: 1;
    min-width: 0; /* Фикс для переполнения */
}

/* Контейнер чекбокса */
.checkbox-container {
    flex-shrink: 0;
    margin-top: 24px; /* Выравнивание по вертикали */
}

/* Кастомный чекбокс */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #3498db;
    border-radius: 4px;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #f0f8ff;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #3498db;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    margin-left: 5px;
    font-size: 14px;
    color: #444;
    white-space: nowrap;
}

/* Стили для фильтров */
.filter-container {
    position: relative;
    display: inline-block;
    margin: 10px 0;
  }
  
  .filter-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }
  
  .filter-badge {
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    display: none;
  }
  
  .filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background: white;
    border-radius: 8px;
    width: 320px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalOpen 0.3s ease-out;
  }
  
  @keyframes modalOpen {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
  }
  
  .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
  }
  
  .filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  
  .filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }
  
  .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }
  
  .status-open { background: #0099ff; }
  .status-pending { background: #fbff00; }
  .status-closed { background: #3cff00; }
  .status-canceled {background: #fc0303;}
  
  .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
  }
  
  .apply-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .reset-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
  }
  

  
  .status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
  }
  
  .priority-high { background: #e74c3c; }
  .priority-medium { background: #f39c12; }
  .priority-low { background: #3498db; }
  
  /* Индикатор загрузки */
  #loadingIndicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 1001;
  }
  
  .loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Сообщения */
  .message {
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
  }
  
  .error-message {
    background: #f8d7da;
    color: #721c24;
  }
  
  .empty-message {
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
  }