/* Стили для административной панели Hell in Law */

@font-face {
    font-family: 'Literature-Decor';
    src: url('fonts/Literature-Decor.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Literature-Decor', 'Roboto', serif;
    background-color: #000;
    color: #fff;
    height: 100%;
    overflow: hidden;
}

.main-content {
    background-image: url('HellInLaw.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: calc(100vh - 67px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Стили для страницы входа администратора */
.admin-login-container {
    background-color: rgba(20, 20, 20, 0.9);
    border: 2px solid #8B0000;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.7);
    border-radius: 5px;
}

.admin-login-container h2 {
    color: #D4AF37;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Literature-Decor', 'Roboto', serif;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #D4AF37;
}

.error-message {
    background-color: rgba(139, 0, 0, 0.3);
    color: #FF6347;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #8B0000;
    border-radius: 3px;
}

/* Стили для панели администратора */
.admin-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 67px);
    background-color: #0a0a0a;
}

/* Стили для чата с пользователем */
.chat-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgba(20, 20, 20, 0.9);
    padding: 20px;
    box-sizing: border-box;
}

.chat-view .chat-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #8B0000;
    padding-bottom: 15px;
    margin-bottom: 15px;
    flex-shrink: 0;
    position: relative;
}

.chat-view .user-info {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.chat-view .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #D4AF37;
    color: #141414;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 10px;
    border: 1px solid #8B0000;
}

.back-button {
    background-color: transparent;
    color: #D4AF37;
    border: 1px solid #8B0000;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.back-button:hover {
    background-color: #8B0000;
    color: #D4AF37;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #8B0000;
    scrollbar-width: thin;
    scrollbar-color: #8B0000 #141414;
    display: flex;
    flex-direction: column;
}

.messages-container::-webkit-scrollbar {
    width: 8px;
}

.messages-container::-webkit-scrollbar-track {
    background: #141414;
}

.messages-container::-webkit-scrollbar-thumb {
    background-color: #8B0000;
    border-radius: 20px;
    border: 2px solid #141414;
}

.message {
    margin: 10px 0;
    padding: 12px 15px;
    border-radius: 8px;
    max-width: 80%;
    position: relative;
    animation: fadeIn 0.3s ease-out;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    letter-spacing: 0.8px;
    word-spacing: 1.2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.admin {
    background-color: rgba(139, 0, 0, 0.7);
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
    border-top-right-radius: 0;
    border: 1px solid #D4AF37;
}

.message.user {
    background-color: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    align-self: flex-start;
    margin-right: auto;
    border-top-left-radius: 0;
    border: 1px solid #8B0000;
}

.message p {
    margin: 0 0 5px 0;
    white-space: pre-wrap;
    line-height: 1.5;
    letter-spacing: 0.8px;
    word-spacing: 1.2px;
}

.timestamp {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    margin-top: 5px;
}

.message.user .timestamp {
    color: rgba(255, 255, 255, 0.7);
}

.message.admin .timestamp {
    color: rgba(212, 175, 55, 0.7);
}

.input-container {
    display: flex;
    gap: 10px;
    position: relative;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
}

.send-btn-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-self: center;
    flex-shrink: 0;
    position: absolute;
}

.chat-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #8B0000;
    background-color: rgba(26, 26, 26, 0.7);
    color: #fff;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    resize: none;
    height: 43px;
    min-height: 43px;
    max-height: 43px;
    overflow-y: auto;
    margin-right: 0;
    line-height: 1.5;
    letter-spacing: 0.8px;
    word-spacing: 1.2px;
}

.chat-input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.counter-container {
    width: 120px;
    text-align: center;
    font-size: 0.7em;
    color: #D4AF37;
    padding: 0;
    height: 43px;
    background-color: rgba(26, 26, 26, 0.3);
    border: 1px solid #8B0000;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-4px);
}

.send-btn {
    background-color: #8B0000;
    color: #D4AF37;
    border: none;
    padding: 0 !important;
    margin: 0px 0px !important;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    box-sizing: border-box;
    transform: translateY(-4px);
}

.send-btn:hover {
    background-color: #D4AF37;
    color: #8B0000;
}

.send-btn:active {
    transform: scale(0.98);
}

.logout-btn {
    background-color: transparent;
    color: #D4AF37;
    border: 1px solid #8B0000;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    text-decoration: none;
}

.logout-btn:hover {
    background-color: #8B0000;
    color: #D4AF37;
}

/* Адаптивный дизайн */
@media screen and (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .chats-list {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .chat-view {
        width: 100%;
        height: auto;
    }
    
    .chats-container {
        max-height: calc(100vh - 280px);
    }
    
    .chat-view {
        height: calc(100vh - 67px);
    }
    
    .chat-item {
        padding: 10px;
    }
    
    .chat-item-avatar {
        width: 35px;
        height: 35px;
    }
    
    .chat-input {
        flex-grow: 1;
    }
    
    .send-btn-container {
        width: auto;
    }
    
    .counter-container {
        display: none;
    }
    
    .send-btn {
        height: 43px;
    }
    
    .back-button {
        padding: 5px 10px;
        font-size: 0.9em;
    }
    
    .chat-header h2 {
        font-size: 1em;
    }
    
    .chat-header h3 {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 600px) {
    .chat-container {
        width: 100%;
        margin: 0;
        padding: 10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .chat-input {
        flex-grow: 1;
    }
    
    .send-btn-container {
        width: auto;
    }
    
    .counter-container {
        display: none;
    }
    
    .send-btn {
        height: 43px;
        min-width: 100px;
    }
}

@media screen and (max-width: 480px) {
    .admin-login-container {
        width: 90%;
        padding: 20px;
    }
    
    .chat-item-avatar {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }
    
    .chat-item-username {
        font-size: 0.9em;
    }
    
    .last-message-time {
        font-size: 0.7em;
    }
    
    .chat-view .user-avatar {
        width: 30px;
        height: 30px;
    }
    
    .chat-view h2 {
        font-size: 0.85em;
    }
    
    .chat-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .chat-input {
        flex-grow: 1;
    }
    
    .send-btn-container {
        width: auto;
    }
    
    .counter-container {
        display: none;
    }
    
    .send-btn {
        height: 43px;
        min-width: 80px;
    }
}

/* Стили для списка чатов */
.chats-list {
    width: 100%;
    height: auto;
    overflow-y: auto;
    border-right: 2px solid #8B0000;
    background-color: rgba(20, 20, 20, 0.9);
    display: block;
    overflow: hidden;
}

.chats-list h2 {
    color: #D4AF37;
    padding: 15px;
    margin: 0;
    text-align: center;
    border-bottom: 1px solid #8B0000;
    overflow: hidden;
}

.chats-container {
    padding: 10px;
    overflow-y: auto;
    height: 100%;
    max-height: calc(100vh - 160px);
    scrollbar-width: thin;
    scrollbar-color: #8B0000 #141414;
}

.chat-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    margin-bottom: 5px;
    border-radius: 5px;
    background-color: rgba(26, 26, 26, 0.7);
}

.chat-item:hover {
    background-color: rgba(139, 0, 0, 0.2);
}

.chat-item.unread {
    background-color: rgba(139, 0, 0, 0.3);
    border-left: 3px solid #D4AF37;
}

.chat-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #D4AF37;
    color: #141414;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 15px;
    border: 1px solid #8B0000;
    flex-shrink: 0;
}

.chat-item-info {
    flex-grow: 1;
    overflow: hidden;
}

.chat-item-username {
    color: #D4AF37;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.last-message-time {
    font-size: 0.8em;
    color: #aaa;
}

.last-message-time.unread {
    color: #D4AF37;
}

.unread-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: #D4AF37;
    color: #141414;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8em;
    margin-left: 10px;
}

.loading, .no-chats, .error {
    text-align: center;
    padding: 20px;
    color: #aaa;
}

.error {
    color: #FF6347;
}

/* Стили для отображения информации об обращении в админ-панели */

/* Индикатор наличия обращения в списке чатов */
.inquiry-indicator {
    display: inline-block;
    color: #D4AF37;
    font-size: 0.8em;
    margin-left: 5px;
    border: 1px solid #8B0000;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background-color: rgba(139, 0, 0, 0.3);
    cursor: help;
}

/* Кнопка просмотра информации об обращении */
.view-inquiry-btn {
    background-color: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    border: 1px solid #8B0000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-inquiry-btn:hover {
    background-color: rgba(212, 175, 55, 0.4);
}

/* Стили для блока с информацией об обращении */
.inquiry-info {
    background-color: rgba(139, 0, 0, 0.1);
    border: 1px solid #8B0000;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 15px;
    color: #D4AF37;
    max-height: 30vh;
    overflow-y: auto;
}

.inquiry-info-title {
    font-weight: bold;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 5px;
}

.inquiry-detail {
    margin: 5px 0;
    font-size: 0.9em;
}

.inquiry-detail-label {
    font-weight: bold;
    margin-right: 5px;
}

.no-inquiry {
    font-style: italic;
    color: rgba(212, 175, 55, 0.7);
}

.message {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Стили для защиты от мерцания при перерисовке */
.messages-container {
    transition: height 0.1s ease;
    will-change: contents;
}

/* Стили для анимации высоты контейнера (добавляем содержимое) */
.messages-container {
    height: auto;
    min-height: 300px;
}

/* Стиль, который обеспечит отсутствие скачков контента при добавлении элементов с анимацией */
.messages-container {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 10px;
}

/* Стили для плавного появления новых сообщений */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.new-message {
    animation: fadeInUp 0.3s ease forwards;
}

.user-name-container {
    display: flex;
    flex-direction: column;
}


/* Enhanced clickable elements */
.user-info.clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.user-info.clickable:hover {
    transform: scale(1.05);
}

.user-info.clickable:active {
    transform: scale(0.98);
}



/* Remove styles for the old inquiry button that we're replacing */
.view-inquiry-btn {
    display: none;
}

/* Enhanced styles for inquiry info modal */
.inquiry-info-modal-content {
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Make the inquiry details more readable */
.inquiry-detail {
    margin-bottom: 12px;
    line-height: 1.5;
    letter-spacing: 0.8px;
    word-spacing: 1.2px;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.inquiry-detail-label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
    color: #D4AF37;
}

/* For mobile devices */
@media screen and (max-width: 480px) {
    .info-label {
        font-size: 0.6em;
    }
    
    .inquiry-info-modal-content {
        max-width: 95%;
        padding: 15px;
    }
    
    .inquiry-detail {
        font-size: 0.9em;
    }
}
.file-message-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #2a2a2a;
    border-radius: 50%;
    color: #D4AF37;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-message-download:hover {
    background-color: #D4AF37;
    color: #000;
    transform: scale(1.1);
}

/* Индикатор загрузки при скачивании */
.file-message-download.downloading {
    pointer-events: none;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Улучшение стиля блока с файлом */
.file-message {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.file-message-icon {
    font-size: 24px;
    margin-right: 10px;
}

.file-message-info {
    flex: 1;
    margin-right: 10px;
}

.file-message-name {
    font-weight: bold;
    word-break: break-word;
}

.file-message-size {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
}

/* Redesigned input container to better integrate the attachment button */
.input-container {
    display: flex;
    gap: 10px;
    position: relative;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
}

.attachment-btn {
    background-color: #141414;
    color: #D4AF37;
    border: 1px solid #8B0000;
    border-radius: 5px;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease; /* Same transition as send-btn */
    flex-shrink: 0;
    position: static;
    margin: 0;
    padding: 0;
    transform: translateY(-4px); /* Match the send button's transform */
}

.attachment-btn:hover {
    background-color: #D4AF37; /* Same hover behavior as send-btn */
    color: #8B0000;
}

.attachment-btn:active {
    transform: scale(0.98); /* Same active animation as send-btn */
}

/* Remove the transform: scale(1.1) that was overriding the consistent behavior */
.attachment-btn:hover {
    transform: translateY(-4px); /* Keep consistent with initial state */
    color: #8B0000; /* Keep color change */
}

/* Adjust chat input to work with the new layout */
.chat-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #8B0000;
    background-color: rgba(26, 26, 26, 0.7);
    color: #fff;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    resize: none;
    height: 43px;
    min-height: 43px;
    max-height: 43px;
    overflow-y: auto;
    margin-right: 0;
    line-height: 1.5;
    letter-spacing: 0.8px;
    word-spacing: 1.2px;
}

/* Updated layout for mobile views */
@media screen and (max-width: 600px) {
    .counter-container {
        display: none; /* Hide counter on smaller screens */
    }
    
    .attachment-btn {
        width: 40px; /* Slightly smaller */
    }
}

@media screen and (max-width: 480px) {
    .input-container {
        gap: 5px; /* Less gap on mobile */
    }
    
    .attachment-btn {
        width: 38px; /* Even smaller for mobile */
        height: 43px;
    }
    
    .chat-input {
        font-size: 0.9em; /* Slightly smaller text on mobile */
    }
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-preview {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(26, 26, 26, 0.9);
    border: 1px solid #8B0000;
    border-radius: 5px;
    margin-bottom: 10px;
    max-width: 100%;
}

.file-preview-name {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    color: #D4AF37;
    font-size: 0.9em;
}

.file-preview-remove {
    background-color: transparent;
    color: #FF6347;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px -0px;
}

.file-preview-remove:hover {
    color: #fff;
}

.file-message {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.file-message:hover {
    background-color: rgba(139, 0, 0, 0.1);
    border: 1px solid #8B0000;
    transform: scale(1.02);
}

.file-message:active {
    transform: scale(0.98);
}

/* Скрываем старую кнопку скачивания */
.file-message-download {
    display: none;
}

.delete-chat-btn {
    background-color: transparent;
    color: #FF6347;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    margin-left: 10px;
    opacity: 0.7;
}

.delete-chat-btn:hover {
    background-color: rgba(255, 99, 71, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

/* Стили для модального окна подтверждения */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: rgba(20, 20, 20, 0.95);
    border: 2px solid #8B0000;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.7);
    border-radius: 5px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    border-bottom: 1px solid #8B0000;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #D4AF37;
}

.close-modal {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #D4AF37;
}

.modal-body {
    padding: 15px;
    color: #fff;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #8B0000;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-btn {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.cancel-btn:hover {
    background-color: #444;
}

.confirm-delete-btn {
    background-color: #8B0000;
    color: #D4AF37;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.confirm-delete-btn:hover {
    background-color: #a30000;
}

/* Стили для индикатора загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(3px);
}

.loading-spinner {
    border: 5px solid rgba(139, 0, 0, 0.3);
    border-radius: 50%;
    border-top: 5px solid #D4AF37;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #D4AF37;
    font-size: 16px;
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    background-color: rgba(20, 20, 20, 0.9);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #FF6347;
}

.notification.info {
    border-left: 4px solid #2196F3;
}

/* Адаптивный дизайн для модального окна */
@media screen and (max-width: 768px) {
    .modal-content {
        max-width: 90%;
    }
    
    .notification {
        width: 80%;
        right: 10%;
        top: 10px;
    }
}