/* Уведомление для пользователей */
.notification-modal {
    position: fixed;
    bottom: 20px;
    left: calc(5rem + 16px);
    z-index: 100;
    max-width: 400px;
    animation: slideIn2 0.3s ease;
}

@media (max-width: 768px) {
    .notification-modal {
        left: 16px;
        right: 16px;
        bottom: 70px;
        max-width: unset;
    }
}

@keyframes slideIn2 {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-modal.hiding {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.notification-modal-content {
    background: var(--card);
    border: 1px solid var(--transparent-10-w);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--transparent-10-b);
}

.notification-modal-image {
    width: 100%;
    max-height: 150px;
    overflow: hidden;
}

.notification-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-modal-body {
    padding: 16px;
    position: relative;
}

.notification-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--transparent-5-w);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.notification-modal-close:hover {
    background: var(--transparent-10-w);
    color: var(--text-default);
}

.notification-modal-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 14px;
}

.notification-modal-footer {
    display: flex;
    justify-content: flex-end;
}

.notification-modal-button {
    display: inline-block;
    padding: 8px 20px;
    background: var(--span);
    color: var(--text-default);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.notification-modal-button:hover {
    background: var(--span-half);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--span-10);
}

/* Кнопка админа */
.notification-admin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--span);
    color: var(--text-default);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px var(--span-10);
    transition: all 0.3s ease;
}

.notification-admin-btn:hover {
    background: var(--span-half);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--span-20);
}

/* Модальное окно настроек */
.notification-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notification-settings-content {
    background: var(--card);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--transparent-10-w);
}

.notification-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--transparent-10-w);
}

.notification-settings-header h3 {
    margin: 0;
    color: var(--text-default);
}

.notification-settings-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
}

.notification-settings-close:hover {
    color: var(--text-default);
}

.notification-settings-body {
    padding: 20px;
}

.notification-settings-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--transparent-10-w);
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-default);
    font-weight: 500;
}

.form-row {
    display: flex;
    gap: 15px;
}

.half {
    flex: 1;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px;
    background: var(--input-form);
    border: 1px solid var(--transparent-10-w);
    border-radius: 6px;
    color: var(--text-default);
    font-size: 14px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--span);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Загрузка изображения */
.upload-area {
    border: 2px dashed var(--transparent-10-w);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--input-form);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--span);
    background: var(--span-10);
}

.upload-content svg {
    stroke: var(--span);
    margin-bottom: 10px;
}

.upload-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Кнопки */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--span);
    color: var(--text-default);
}

.btn-primary:hover {
    background: var(--span-half);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--button);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--button-hover);
    color: var(--text-default);
}

.btn-danger {
    background: var(--red);
    color: white;
}

.btn-danger:hover {
    background: var(--red-20);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Сообщения */
#notificationMessage.success {
    background: var(--green-10);
    color: var(--green);
    border: 1px solid var(--green);
}

#notificationMessage.error {
    background: var(--red-10);
    color: var(--red);
    border: 1px solid var(--red);
}

/* Предпросмотр изображения */
#imagePreview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--input-form);
    border-radius: 6px;
}

#imagePreview img {
    border-radius: 4px;
}