/**
 * Professional Popup Notification Styles
 * Minimal, elegant toast-style notifications for user feedback
 */

.notification-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 420px;
    width: 90%;
}

.notification {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1f2937;
    transform: translateY(-20px) scale(0.96);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease-out;
    pointer-events: auto;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.notification--show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.notification--hide {
    transform: translateY(-20px) scale(0.96);
    opacity: 0;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    line-height: 1;
}

.notification-message {
    flex: 1;
    word-wrap: break-word;
    letter-spacing: -0.01em;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.125rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
    line-height: 1;
}

.notification-close:hover {
    color: #374151;
    background-color: rgba(0, 0, 0, 0.04);
}

/* Success Notification */
.notification--success {
    background: #ffffff;
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.2);
}

.notification--success .notification-icon {
    background: #10b981;
    color: #ffffff;
}

/* Error Notification */
.notification--error {
    background: #ffffff;
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
}

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

/* Info Notification */
.notification--info {
    background: #ffffff;
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.2);
}

.notification--info .notification-icon {
    background: #3b82f6;
    color: #ffffff;
}

/* Warning Notification */
.notification--warning {
    background: #ffffff;
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.2);
}

.notification--warning .notification-icon {
    background: #f59e0b;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 92%;
        width: 92%;
    }

    .notification {
        padding: 14px 18px;
        font-size: 0.875rem;
        gap: 12px;
    }

    .notification-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8125rem;
    }

    .notification-close {
        width: 22px;
        height: 22px;
        font-size: 1rem;
    }
}

/* Animation for multiple notifications */
@keyframes slideInCenter {
    from {
        transform: translateY(-20px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutCenter {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-20px) scale(0.96);
        opacity: 0;
    }
}

/* Hidden Flash Message Alerts */
/* These alerts are hidden by default and shown via JavaScript as toast notifications */
.alert[data-flash-type] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}