/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    --primary-color: #1a5fb4;
    --secondary-color: #2c3e50;
    --accent-color: #e95420;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --notification-color: #e74c3c;
    --success-color: #217346;
    --warning-color: darkorange;
    --danger-color: #dc3545;

    --transition-base: all 0.3s ease;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);

    --border-radius: 8px;
    --btn-height: 38px;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {

    background: linear-gradient(rgba(245,245, 240, 0.9), rgba(245, 245, 240, 0.9)),
    radial-gradient(circle at 50% 50%, #e8e8d8 0%, transparent 50%);
    background-size: cover, 300% 300%;
    min-height: 100dvh; /* Современное свойство для учета интерфейса браузера */
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; /* Современный стек шрифтов */
    line-height: 1.6;
    color: #333;
}


/* ===== КНОПКИ ===== */
/* Базовый стиль кнопок с общими свойствами */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: 500;
    transition: background-color 0.2s;
    height: var(--btn-height);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-right: 5px;
}

/* Кнопки экспорта с цветовыми модификаторами */
.btn-export {
    color: white;
}

.btn-word { background-color: darkblue; }
.btn-word:hover { background-color: mediumblue; }

.btn-excel { background-color: var(--success-color); }
.btn-excel:hover { background-color: #1a5c38; }

.btn-print { background-color: black; }
.btn-print:hover { background-color: dimgray; }

.btn-copy { background-color: var(--warning-color); }
.btn-copy:hover { background-color: orange; }

.btn-pdf { background-color: var(--danger-color); }
.btn-pdf:hover { background-color: #bd2130; }

/* Кнопка добавления с градиентным фоном */
.btn-add {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 2px 5px rgba(26, 95, 180, 0.3);
}

.btn-add:hover,
.btn-add:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 95, 180, 0.3);
}

.btn-add:active {
    transform: translateY(0);
}

/* Кнопки действий в таблице */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px; /* Исправлено: было borderRadius */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-action i {
    transition: transform 0.2s ease;
}

.btn-action:hover i {
    transform: scale(1.1);
}

.btn-action:active {
    transform: translateY(1px);
}

.btn-edit {
    background: linear-gradient(135deg, rgba(26, 95, 180, 0.1), rgba(26, 95, 180, 0.2));
    border: 1px solid rgba(26, 95, 180, 0.3);
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(26, 95, 180, 0.1);
}

.btn-edit:hover,
.btn-edit:focus-visible {
    background: linear-gradient(135deg, var(--primary-color), #155a9d);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(26, 95, 180, 0.2);
}

.btn-delete {
    background: linear-gradient(135deg, rgba(233, 84, 32, 0.1), rgba(233, 84, 32, 0.2));
    border: 1px solid rgba(233, 84, 32, 0.3);
    color: var(--accent-color);
    box-shadow: 0 2px 4px rgba(233, 84, 32, 0.1);
}

.btn-delete:hover,
.btn-delete:focus-visible {
    background: linear-gradient(135deg, var(--accent-color), #d04a1c);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 8px rgba(233, 84, 32, 0.2);
}
.btn-delete-banlist {
    transition: all 0.2s ease;
}
.btn-delete-banlist:hover {
    transform: scale(1.05);
}
#refreshButton {
    transition: all 0.3s ease;
}

/* Эффект блика для кнопок при наведении */
.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-action:hover::before {
    left: 100%;
}

/* ===== ПАНЕЛИ И КОНТЕЙНЕРЫ ===== */
.action-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0;
}

.filter-panel {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-search {
    flex: 2;
    min-width: 250px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.actions-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.add-button-container {
    display: flex;
    justify-content: flex-start;
    flex: 1;
}

.export-buttons-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 5px;
    flex: 2;
    overflow-x: auto;
    padding-bottom: 5px;
}

/* Стилизация скроллбара для контейнера с кнопками */
.export-buttons-container::-webkit-scrollbar {
    height: 4px;
}

.export-buttons-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.functions-container {
    display: flex;
    justify-content: flex-end;
}

.functions-container .dropdown-menu {
    min-width: 200px;
}

.functions-container .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.functions-container .dropdown-item:hover {
    background-color: #f8f9fa;
}

.functions-container .dropdown-item i {
    width: 20px;
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.share-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin: 5px;
    padding: 5px;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar-chonp {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: var(--shadow-medium);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    min-width: max-content;
}

.logo-icon {
    background-color: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: var(--transition-base);
    border-radius: 6px;
    margin: 0 2px;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Уведомления */
.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    padding: 0.5rem;
    margin: 0 0.5rem;
    border-radius: 50%;
    transition: var(--transition-base);
    cursor: pointer;
}

.notification-btn:hover,
.notification-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--notification-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition-base);
}

.avatar-placeholder:hover,
.avatar-placeholder:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Выпадающие меню */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    border: none;
    min-width: 250px;
    margin-top: 8px;
}

.dropdown-item {
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    margin: 2px 8px;
    transition: var(--transition-base);
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
    background-color: #e9f2ff;
    color: var(--primary-color);
}

.functions-container .dropdown-toggle {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.functions-container .dropdown-toggle:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.functions-container .dropdown-toggle:active {
    transform: translateY(0);
}

.functions-container .dropdown-toggle i {
    margin-right: 0.5rem;
}

/* Стили для элементов выпадающего меню экспорта */
.dropdown-item-print { background-color: black; color: white !important; }
.dropdown-item-print:hover { background-color: #333 !important; }

.dropdown-item-pdf { background-color: #dc3545; color: white !important; }
.dropdown-item-pdf:hover { background-color: #bd2130 !important; }

.dropdown-item-excel { background-color: #217346; color: white !important; }
.dropdown-item-excel:hover { background-color: #1a5c38 !important; }

.dropdown-item-word { background-color: darkblue; color: white !important; }
.dropdown-item-word:hover { background-color: mediumblue !important; }

.dropdown-item-copy { background-color: darkorange; color: white !important; }
.dropdown-item-copy:hover { background-color: orange !important; }

/* ===== ТАБЛИЦЫ ===== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}
.share-table {
    text-align: center;
    vertical-align: center;
    border-collapse: collapse;
}

.share-table th {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    border: none;
}

.share-table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #e9ecef;
    text-align: center;
}

.share-table tbody tr:hover {
    background-color: rgba(26, 95, 180, 0.05);
}

/* ===== ПРОФИЛЬ И МОДАЛЬНЫЕ ОКНА ===== */
.modal-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-radius: 0.3rem 0.3rem 0 0 !important;
}

.profile-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.profile-header {
    background: linear-gradient(135deg, #2c3e50, #1a5fb4);
    padding: 1.5rem;
    text-align: center;
    color: white;
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    margin: 0 auto 1rem;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar i {
    font-size: 3.5rem;
    color: #6c757d;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-role {
    font-size: 1rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.profile-body {
    padding: 1.5rem;
    background-color: #f8f9fa;
}

.profile-info-item {
    display: flex;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.profile-info-icon {
    width: 40px;
    height: 40px;
    background: #e9f2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.profile-info-icon i {
    font-size: 1.25rem;
    color: #1a5fb4;
}

.profile-info-content {
    flex-grow: 1;
}

.profile-info-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.15rem;
}

.profile-info-value {
    font-size: 1.05rem;
    font-weight: 500;
    word-break: break-word;
}

.profile-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

/* ===== РАЗНОЕ ===== */
.record-count-info {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-count {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 12px;
}

.no-data-alert {
    margin-bottom: 20px;
    text-align: center;
}

.btn-text {
    margin-left: 0.5rem;
    display: none;
}


/* Добавим стили для отображения ошибок файла */
.file-error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
    text-align: center;
    display: none;
    background-color: #f8d7da;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.file-error.show { display: block; }

.bg-success-light {
    background-color: rgba(25, 135, 84, 0.1);
    transition: background-color 0.3s ease;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
        margin: 0.5rem;
    }
}

.alert-live {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 600px;
    display: none;
}

.alert-live.show {
    display: block;
    animation: fadeIn 0.3s, fadeOut 0.3s 4.7s forwards;
}

.alert.position-fixed {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

@keyframes fadeIn {
    from { opacity: 0; top: 0; }
    to { opacity: 1; top: 20px; }
}

@keyframes fadeOut {
    from { opacity: 1; top: 20px; }
    to { opacity: 0; top: 0; visibility: hidden; }
}

#notarySelectContainer {
    transition: all 0.3s ease;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.data-updated-indicator {
    border: 2px solid #28a745 !important;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
    transition: all 0.3s ease;
}

.avatar-placeholder img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Индикатор загрузки */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.3s;
    backdrop-filter: blur(3px);
}

.indicator-circle {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(41, 128, 185, 0.2);
    border-top-color: #2980b9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.indicator-text {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Стили для превью фото */
#userPhotoPreview {
    width: 85px;
    height: 113px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* Анимация подсказки */
.password-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 500px;
    text-align: center;
    display: none;
}

.password-hint.show {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s, fadeOut 0.3s 4.7s forwards;
}

/* Предупреждение для пустого пароля */
.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fffcf7;
}

.btn-danger-temp {
    background-color: #dc3545 !important;
    color: white !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* ПЕЧАТЬ */
/* Стили для печати */
@media print {
@charset "UTF-8"; /* Устанавливаем кодировку для печати */
    body {
        font-family: "Times New Roman", Times, serif !important;
        font-size: 12pt !important;
        color: #000 !important;
        background: white !important;
    }

    .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .print-table th,
    .print-table td {
        text-align: center !important;
        vertical-align: middle !important;
        padding: 6px !important;
        border: 1px solid #000 !important;
    }

    .print-table th {
        font-weight: bold !important;
        background-color: #f2f2f2 !important;
    }

    .header-section, .footer-section {
        text-align: center !important;
        width: 100% !important;
    }

    /* Скрываем элементы, которые не должны печататься */
    .dataTables_filter,
    .dataTables_length,
    .dataTables_info,
    .dataTables_paginate,
    .dt-buttons {
        display: none !important;
    }

    @media (max-width: 768px) {
        .dataTables_wrapper .row > .col-auto {
            width: 100%;
            margin: 10px;
        }
    }



/* ===== АДАПТИВНОСТЬ ===== */
/* Учет пользовательских предпочтений относительно анимации */
@media (prefers-reduced-motion: reduce) {
    *, *::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .actions-container {
        flex-direction: column;
        align-items: stretch;
    }

    .add-button-container, .export-buttons-container {
        justify-content: center;
        width: 100%;
    }

    .btn-export, .btn-add {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .export-buttons-container {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .filter-panel {
        flex-direction: column;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group, .filter-search {
        min-width: 100%;
        width: 100%;
    }

    .filter-actions {
        justify-content: center;
        width: 100%;
    }

    .avatar-placeholder {
        width: 35px;
        height: 35px;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .action-panel .btn-add {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        min-width: 100%;
        margin-top: 5px;
    }

    .functions-container {
        width: 100%;
        margin-top: 10px;
        justify-content: stretch;
    }

    .functions-container .dropdown {
        width: 100%;
    }

    .functions-container .dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
        color: white;
        border: none;
        padding: 0.75rem 1.25rem;
        border-radius: 6px;
        font-weight: 500;
        box-shadow: 0 2px 5px rgba(26, 95, 180, 0.3);
    }

    .functions-container .dropdown-toggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(26, 95, 180, 0.3);
    }

    .functions-container .dropdown-menu {
        min-width: 100%;
        right: 0 !important;
        left: 0 !important;
        transform: translate3d(0, 38px, 0px) !important;
        margin-top: 0;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .functions-container .dropdown-item {
        padding: 0.75rem 1.25rem;
        display: flex;
        align-items: center;
    }

    .functions-container .dropdown-item i {
        margin-right: 0.75rem;
        font-size: 1.1rem;
    }

    .actions-container {
        flex-direction: column;
    }

    .add-button-container {
        width: 100%;
    }

    .add-button-container .btn-add {
        width: 100%;
    }

    .nav-link {
        padding: 0.5rem !important;
    }

    .notification-btn {
        font-size: 1.1rem;
        padding: 0.4rem;
    }

    .action-panel .btn-add {
        padding: 0.6rem 1.5rem;
    }

    .btn-action {
        min-width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .btn-action i {
        font-size: 1.2rem;
    }

    .btn-text {
        display: inline;
    }

    .profile-header {
        padding: 1rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .profile-body {
        padding: 1rem;
    }

    .share-table-container {
        border-radius: 6px;
        padding: 5px;
    }

    .share-table {
        padding: 5px;
        font-size: 0.875rem;
    }

    .share-table th, .share-table td {
        padding: 0.75rem 0.5rem;
    }

    .btn-action {
        min-width: 38px;
        height: 38px;
        font-size: 0.9rem;
        padding: 0.4rem;
    }

    .btn-action i {
        font-size: 0.95rem;
    }

    .action-buttons {
        gap: 0.4rem;
    }
}

/* Маленькие мобильные устройства (до 576px) */
@media (max-width: 576px) {
    .filter-group.form-select, .filter-search .input-group {
        width: 100% !important;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 8px;
    }

    .notification-badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .btn-action {
        min-width: 44px;
        height: 44px;
        font-size: 1rem;
        padding: 0.5rem;
    }

    .btn-action i {
        font-size: 1.1rem;
    }
}

/* Очень маленькие устройства (до 400px) */
@media (max-width: 400px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-right: 6px;
    }

    .profile-info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-info-icon {
        margin-bottom: 0.5rem;
    }

    .share-table {
        font-size: 0.8rem;
    }

    .share-table th, .share-table td {
        padding: 0.5rem 0.25rem;
    }

    .btn-action {
        min-width: 34px;
        height: 34px;
        font-size: 0.8rem;
        padding: 0.3rem;
    }

    .btn-action i {
        font-size: 0.85rem;
    }

    .action-buttons {
        gap: 0.3rem;
    }
}

/* Миниатюрные устройства (до 320px) */
@media (max-width: 320px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-right: 6px;
    }

    .share-table {
        font-size: 0.75rem;
    }

    .share-table th, .share-table td {
        padding: 0.4rem 0.2rem;
    }

    .btn-action {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .btn-action i {
        font-size: 0.8rem;
    }

    .action-buttons {
        gap: 0.25rem;
    }
}

/* Миниатюрные устройства (до 280px) */
@media (max-width: 280px) {
    .action-buttons {
        gap: 0.2rem;
    }

    .btn-action {
        min-width: 30px;
        height: 30px;
    }
}

/* Планшеты и выше (от 576px) */
@media (min-width: 576px) {
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .navbar-brand span {
        font-size: 1rem;
    }

    .notification-badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .btn-action {
        min-width: 44px;
        height: 44px;
        font-size: 1rem;
        padding: 0.5rem;
    }

    .btn-action i {
        font-size: 1.1rem;
    }
}

/* Планшеты и выше (от 768px) */
@media (min-width: 768px) {
    .navbar-brand span {
        font-size: 1.5rem;
    }

    .btn-action {
        min-width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .btn-action i {
        font-size: 1.2rem;
    }
}

/* Десктоп (от 992px) */
@media (min-width: 992px) {
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .btn-action i {
        font-size: 1.3rem;
    }
}
}
