/* Система всплывающих уведомлений */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    width: min(400px, 100%);
}

.notification {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 10px;
    background: #fff;
    border-left: 4px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: slideInRight 0.35s ease-out;
}

.notification:hover {
    transform: translateX(-6px);
}

.notification.success {
    border-left-color: var(--success-color, #10b981);
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.notification.error {
    border-left-color: var(--danger-color, #ef4444);
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.notification.warning {
    border-left-color: var(--warning-color, #f59e0b);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.notification.info {
    border-left-color: var(--primary-color, #3b82f6);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.notification.success .notification-title { color: #047857; }
.notification.error .notification-title { color: #dc2626; }
.notification.warning .notification-title { color: #d97706; }
.notification.info .notification-title { color: #1d4ed8; }

.notification-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 18px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.notification-close:hover {
    background-color: rgba(148, 163, 184, 0.18);
    color: #1f2937;
}

.notification-message {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.notification.success .notification-message { color: #065f46; }
.notification.error .notification-message { color: #991b1b; }
.notification.warning .notification-message { color: #92400e; }
.notification.info .notification-message { color: #1e40af; }

/* Стили для списков в уведомлениях */
.notification-message ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.notification-message ul li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-message ul li:last-child {
    margin-bottom: 0;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.35;
    animation: progressBar 5s linear forwards;
}

.notification.hiding {
    animation: slideOutRight 0.25s ease-in forwards;
}

/* Варианты alert-блоков */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.alert-success {
    background-color: #f0fdf4;
    border-left-color: var(--success-color, #10b981);
    color: #065f46;
}

.alert-error {
    background-color: #fef2f2;
    border-left-color: var(--danger-color, #ef4444);
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border-left-color: var(--warning-color, #f59e0b);
    color: #92400e;
}

.alert-info {
    background-color: #eff6ff;
    border-left-color: var(--primary-color, #3b82f6);
    color: #1e40af;
}

.alert .alert-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 4px;
}

.alert .alert-message {
    line-height: 1.4;
}

@media (max-width: 768px) {
    .notifications-container {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .notification {
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notification,
    .notification.hiding {
        animation: none;
    }

    .notification {
        transform: none !important;
    }

    .notification-progress {
        animation: none;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}




