body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #333;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

header h1 {
    color: #007bff;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.15);
}

header p {
    color: #555;
    font-size: 1.1em;
}

section {
    /* opacity: 0; */ /* Удалено: скрывало секции по умолчанию */
    /* transform: translateY(20px); */ /* Удалено: скрывало секции по умолчанию */
    /* transition: opacity 0.6s ease-out, transform 0.6s ease-out; */ /* Удалено */
    margin-bottom: 40px;
    line-height: 1.6;
}

/* section.visible { */ /* Удалено, так как анимация по умолчанию больше не нужна */
/*    opacity: 1; */
/*    transform: translateY(0); */
/* } */

section h2 {
    color: #333;
    font-size: 2em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    background-color: #e9f5ff;
    margin-bottom: 10px;
    padding: 10px;
    border-left: 5px solid #0056b3;
    transition: background-color 0.3s ease;
}

ul li:hover {
    background-color: #d1e7ff;
}

.card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.employee-card {
    flex: 1 1 calc(50% - 20px);
    box-sizing: border-box;
    padding: 20px;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.employee-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

@media (max-width: 768px) {
    .employee-card {
        flex: 1 1 100%;
    }
}

footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9em;
}

/* Стили для кнопок, которые также используются в основной визитке */
.button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.call-button {
    background-color: #28a745;
}

.call-button:hover {
    background-color: #218838;
    box-shadow: 0 4px 8px rgba(40,167,69,0.4);
}

.save-contact-button {
    background-color: #6c757d;
}

.save-contact-button:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 8px rgba(108,117,125,0.4);
}

/* Анимация нажатия кнопки */
.button:active,
.button.clicked {
    background-color: #004085;
    transform: translateY(1px);
}

/* Стили для кнопок входа/регистрации и меню аккаунта */
.auth-buttons,
.account-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end; /* Выравнивание по правому краю в потоке */
    margin-bottom: 20px; /* Отступ от заголовка */
    width: 100%; /* Занимаем всю доступную ширину */
    padding-right: 0; /* Убираем, так как .container уже имеет padding */
    box-sizing: border-box; /* Для учета padding в ширине */
}

/* Добавляем отступ слева, если кнопки находятся в начале контейнера, чтобы не прилипали к краю */
.auth-section {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.account-menu span {
    color: #333;
    font-weight: bold;
}

.account-menu a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}

.account-menu a:hover {
    text-decoration: underline;
}

.logout-button {
    background-color: #f44336; /* Красный для кнопки выхода */
}

.logout-button:hover {
    background-color: #da190b;
    box-shadow: 0 4px 8px rgba(244,67,54,0.4);
}

.account-menu {
    position: relative; /* Для правильного позиционирования выпадающего меню */
}

.username-dropdown-toggle {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #f0f0f0;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.username-dropdown-toggle:hover {
    background-color: #e0e0e0;
}

.dropdown-content {
    display: none; /* Скрыто по умолчанию */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 5px;
    right: 0;
    top: 100%; /* Позиционирование под переключателем */
    margin-top: 5px; /* Небольшой отступ от переключателя */
}

.dropdown-content a,
.dropdown-content button {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
    background-color: #f1f1f1;
}

.dropdown-content .button {
    margin: 0;
    width: auto; /* Переопределение стиля .button */
    padding: 12px 16px; /* Соответствует другим пунктам меню */
}

.dropdown-content .button:hover {
    background-color: #f1f1f1; /* Соответствует другим пунктам меню */
}

/* Переопределение стилей для форм в модальных окнах (если нужно) */
.modal-content form input[type="text"],
.modal-content form input[type="email"],
.modal-content form input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.modal-content form button.button {
    align-self: flex-end;
    margin-top: 10px;
}

.modal {
    display: none; /* Убеждаемся, что это единственное свойство display по умолчанию */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px; /* Увеличено для лучшего отображения форм */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Добавлен небольшой отступ между элементами формы */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-content form input[type="text"],
.modal-content form input[type="number"],
.modal-content form input[type="email"],
.modal-content form textarea,
.modal-content form select {
    width: calc(100% - 22px); /* Учитываем padding и border */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Важно для корректной ширины */
}

.modal-content form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.modal-content form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Стили для секций админ-панели */
.admin-content-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.admin-card-section h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 25px;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.admin-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 100px; /* Убедиться, что элемент имеет минимальную высоту */
}

.admin-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-item-header h4 {
    margin: 0;
    color: #007bff;
    font-size: 1.2em;
}

.admin-item-body p {
    margin: 8px 0;
    color: #555;
    font-size: 0.95em;
}

.admin-item-body strong {
    color: #333;
}

.admin-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.admin-item .button {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 6px;
}

.edit-rating-btn {
    background-color: #ffc107;
    color: #333;
}

.edit-rating-btn:hover {
    background-color: #e0a800;
}

.delete-rating-btn {
    background-color: #dc3545;
    color: white;
}

.delete-rating-btn:hover {
    background-color: #c82333;
}

.edit-complaint-btn {
    background-color: #17a2b8;
    color: white;
}

.edit-complaint-btn:hover {
    background-color: #138496;
}

.delete-complaint-btn {
    background-color: #dc3545;
    color: white;
}

.delete-complaint-btn:hover {
    background-color: #c82333;
}

.admin-item-reply {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.admin-item-reply p {
    font-style: italic;
    color: #666;
}

.hidden {
    display: none;
}

/* Стили для кнопок Показать/Скрыть раздела - если они понадобятся, но в новой структуре они, возможно, не нужны */
.toggle-section {
    background-color: #6c757d;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.toggle-section:hover {
    background-color: #5a6268;
}

.copy-phone-btn {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    font-size: 0.8em;
    border-radius: 4px;
    margin-left: 5px;
}

.copy-phone-btn:hover {
    background-color: #0056b3;
}

/* Стили для баннеров статуса сайта */
.site-status-banner {
    position: fixed;
    width: 100%;
    padding: 10px 20px;
    color: white;
    text-align: center;
    font-weight: bold;
    z-index: 1000;
    box-sizing: border-box;
}

.site-status-banner.tech-issues {
    bottom: 0;
    background-color: #ffc107; /* Желтый для тех. неполадок */
    color: #333;
    animation: slideInBottom 0.5s forwards;
}

.site-status-banner.critical {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #dc3545; /* Красный для критического статуса */
    font-size: 1.5em;
    padding: 30px;
    border-radius: 10px;
    max-width: 80%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.5s forwards;
}

.site-status-banner.disabled {
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.95); /* Темный фон для отключенного сайта */
    font-size: 2em;
    flex-direction: column;
    animation: fadeIn 0.5s forwards;
}

@keyframes slideInBottom {
    from { bottom: -50px; opacity: 0; }
    to { bottom: 0; opacity: 1; }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Стили для управления общими сообщениями в админ-панели */
.general-messages-management h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 25px;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.message-form-container {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.message-form-container h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.message-form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-form-container label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.message-form-container input[type="text"],
.message-form-container textarea,
.message-form-container select,
.message-form-container input[type="number"] {
    width: calc(100% - 22px); /* Учитываем padding и border */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.message-form-container textarea {
    min-height: 80px;
    resize: vertical;
}

.preview-container {
    border: 1px dashed #ccc;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-top: 15px;
}

#messagePreview {
    position: static; /* Переопределяем fixed для предпросмотра */
    width: auto;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    display: flex; /* Используем flexbox для внутреннего содержимого */
    align-items: center;
    justify-content: space-between; /* Распределяем элементы по краям */
    flex-wrap: wrap; /* Разрешаем перенос на новую строку */
}

.message-preview-content {
    display: flex;
    align-items: center;
    gap: 10px; /* Отступ между элементами внутри предпросмотра */
    flex-grow: 1; /* Позволяет контенту занимать доступное пространство */
}

.message-preview-content strong {
    flex-shrink: 0; /* Предотвращаем сжатие текста */
}

#messagePreview.tech-issues {
    background-color: #ffc107;
    color: #333;
}

#messagePreview.critical {
    background-color: #dc3545;
    color: white;
}

#messagePreview.disabled {
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
}

.timer-controls {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    background-color: #f1f1f1;
    margin-top: 15px;
}

.timer-controls h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
}

.timer-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.timer-input-group label {
    width: 60px; /* Фиксированная ширина для лейбла */
    flex-shrink: 0;
}

.timer-input-group input[type="number"] {
    width: 80px; /* Уменьшаем ширину поля ввода */
    text-align: center;
}

.timer-input-group button {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.2em;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.timer-input-group button:hover {
    background-color: #0056b3;
}

.message-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.message-actions .button {
    padding: 10px 20px;
    font-size: 1em;
}

.secondary-button {
    background-color: #6c757d;
}

.secondary-button:hover {
    background-color: #5a6268;
}

.delete-button {
    background-color: #dc3545;
}

.delete-button:hover {
    background-color: #c82333;
}

.message-timer {
    margin-top: 0; /* Переопределяем margin-top, чтобы он был выровнен */
    font-size: 0.9em;
    color: #fff;
    background-color: rgba(0,0,0,0.2);
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0; /* Предотвращаем сжатие таймера */
}

/* Новые стили для ОБЩИХ сообщений (чтобы они отличались от системных статусов) */
/* ==================================
   General Messages Styling (New and Improved)
================================== */
.general-message-card {
    position: fixed;
    z-index: 1000;
    padding: 25px 30px; /* Увеличил паддинг */
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 15px; /* Увеличил отступ между элементами */
    background-color: white; /* Default background */
    color: #333; /* Default text color */
    border: 1px solid #ddd; /* Default border */
    animation-fill-mode: forwards;
}

.general-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.general-message-icon {
    margin-right: 12px;
    font-size: 1.8em; /* Увеличил размер иконки */
    color: #007bff; /* Default icon color */
}

.general-message-title {
    flex-grow: 1;
    font-weight: bold;
    font-size: 1.6em; /* Увеличил размер заголовка */
    margin: 0;
    color: inherit; /* Inherit color from card */
}

.general-message-body {
    margin-top: 5px; /* Небольшой отступ от заголовка */
    font-size: 1.1em; /* Увеличил размер текста */
    line-height: 1.6;
    color: inherit; /* Inherit color from card */
}

.general-message-close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5em; /* Увеличил размер кнопки закрытия */
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.general-message-close-btn:hover {
    color: #777;
}

.general-message-timer {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.9em;
    margin-top: 10px; /* Отступ от основного текста */
    align-self: flex-end; /* Выравнивание вправо */
}

.general-message-timer.detailed-timer {
    background-color: #28a745; /* Зеленый фон для детального таймера */
    color: white;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Positioning Classes */
.general-message-position-bottom {
    bottom: 25px; /* Увеличил отступ */
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: fit-content;
    animation: slideInUp 0.5s forwards;
}

.general-message-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    width: fit-content;
    animation: fadeInScale 0.5s forwards;
}

.general-message-position-floating {
    bottom: 25px; /* Увеличил отступ */
    right: 25px; /* Увеличил отступ */
    max-width: 400px; /* Увеличил максимальную ширину */
    animation: slideInRight 0.5s forwards;
}

/* Keyframe Animations */
@keyframes slideInUp {
    from { opacity: 0; transform: translate(-50%, 50px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Стили для предпросмотра сообщений в админ-панели */
.message-preview-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.message-preview-text {
    font-size: 1em;
    line-height: 1.4;
}

/* ==================================
   Site Status Overlays & Animations
================================== */
.site-status-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Дефолтный темный фон для оверлея */
    z-index: 9999; /* Высокий z-index, чтобы перекрывать весь контент */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all; /* По умолчанию блокируем взаимодействия */
    animation: fadeIn 0.5s forwards;
}

.site-status-overlay.pixel-virus-animation {
    background-color: #dc3545; /* Красный фон для критического */
    /* Добавьте сюда фоновую анимацию пиксельных вирусов */
    /* Пример: */
    /* background-image: url('path/to/pixel-virus-sprite.png'); */
    /* animation: pixelVirusEffect 10s infinite steps(10); */
}

.site-status-overlay.glitch-animation {
    background-color: #343a40; /* Темный фон для отключенного */
    /* Добавьте сюда анимацию глитча или других эффектов для отключенного */
    /* Пример: */
    /* animation: glitchEffect 1s infinite; */
}

.overlay-message-container {
    text-align: center;
    padding: 20px;
    max-width: 80%;
}

.overlay-message-card {
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 1.8em;
    color: white;
    background-color: #dc3545; /* Красный по умолчанию для оверлея */
    position: relative; /* Для позиционирования подсказки */
}

.overlay-message-card .general-message-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: inherit;
}

.overlay-message-card .general-message-body {
    font-size: 1.2em;
    line-height: 1.8;
    color: inherit;
}

.general-message-hint {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 25px;
}

/* Стили для статуса "Тех.Неполадки" */
.general-message-card.site-status-tech_issues {
    background-color: #ffc107; /* Желтый */
    color: #343a40; /* Темный текст */
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: fit-content;
    animation: slideInUp 0.5s forwards;
    pointer-events: auto; /* Позволяем взаимодействовать с сайтом */
}

.general-message-card.site-status-tech_issues .general-message-icon,
.general-message-card.site-status-tech_issues .general-message-title,
.general-message-card.site-status-tech_issues .general-message-body {
    color: #343a40;
}

/* ==================================
   Animations for Status Overlays
================================== */
/* Анимация для "пиксельных вирусов" */
@keyframes pixelVirusEffect {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* Анимация "глюка" для отключенного сайта */
@keyframes glitchEffect {
    0% { transform: translate(0); opacity: 1; }
    20% { transform: translate(-2px, 2px); opacity: 0.8; }
    40% { transform: translate(2px, -2px); opacity: 1; }
    60% { transform: translate(-1px, 1px); opacity: 0.9; }
    80% { transform: translate(1px, -1px); opacity: 1; }
    100% { transform: translate(0); opacity: 1; }
}

/* Дополнительные классы позиционирования для general-message-card, если не оверлей */
.general-message-position-bottom {
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: fit-content;
    animation: slideInUp 0.5s forwards;
}

.general-message-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    width: fit-content;
    animation: fadeInScale 0.5s forwards;
}

.general-message-position-floating {
    bottom: 25px;
    right: 25px;
    max-width: 400px;
    animation: slideInRight 0.5s forwards;
}

/* Общие анимации */
@keyframes slideInUp {
    from { opacity: 0; transform: translate(-50%, 50px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Стили для предпросмотра сообщений в админ-панели */
.message-preview-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.message-preview-text {
    font-size: 1em;
    line-height: 1.4;
}