/* ============================================================================
   Уведомления и сообщения
   ============================================================================ */

/* Системные алерты Django скрыты — преобразуются в toast через JS */
.alert:not(.notification) { display: none !important; }
.empty-note { margin-top: 1rem; margin-bottom: 1rem; color: rgb(108, 122, 146); }

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.notification {
    min-width: 300px;
    max-width: 450px;
    padding: 1rem 1.25rem;
    background: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(16, 100, 209, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 30px rgba(16, 100, 209, 0.1);
    color: var(--brand-text);
    font-size: 0.875rem;
    line-height: 1.5;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.notification.show { opacity: 1; transform: translateX(0); }
.notification.hide { opacity: 0; transform: translateX(400px); }

.notification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.notification-content {
    flex: 1;
    word-wrap: break-word;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--brand-text);
}

.notification-message {
    color: #6b7280;
    line-height: 1.5;
}

.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    margin-top: -2px;
}

.notification-close:hover {
    color: #374151;
}

/* Типы уведомлений */
.notification-success {
    background: #ffffff;
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 30px rgba(34, 197, 94, 0.15);
}

.notification-success .notification-icon {
    color: #22c55e;
}

.notification-success:hover {
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 40px rgba(34, 197, 94, 0.2);
}

.notification-error {
    background: #ffffff;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 30px rgba(239, 68, 68, 0.15);
}

.notification-error .notification-icon {
    color: #ef4444;
}

.notification-error:hover {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 40px rgba(239, 68, 68, 0.2);
}

.notification-warning {
    background: #ffffff;
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 30px rgba(251, 191, 36, 0.15);
}

.notification-warning .notification-icon {
    color: #fbbf24;
}

.notification-warning:hover {
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 40px rgba(251, 191, 36, 0.2);
}

.notification-info {
    background: #ffffff;
    border-color: rgba(16, 100, 209, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 30px rgba(16, 100, 209, 0.15);
}

.notification-info .notification-icon {
    color: #1064d1;
}

.notification-info:hover {
    border-color: rgba(16, 100, 209, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 40px rgba(16, 100, 209, 0.2);
}

@media (max-width: 768px) {
    .notification-container { top: 10px; right: 10px; left: 10px; }
    .notification { min-width: auto; max-width: 100%; transform: translateY(-100px); }
    .notification.show { transform: translateY(0); }
    .notification.hide { transform: translateY(-100px); }
}

