/**
 * Modern Notification System Styles
 * Professional, responsive notification styles
 */

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.modern-notification {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid;
    overflow: hidden;
    position: relative;
}

.modern-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.modern-notification.hide {
    opacity: 0;
    transform: translateX(400px);
}

/* Notification Types */
.modern-notification-success {
    border-left-color: #10b981;
    background: linear-gradient(to right, #ffffff 0%, #f0fdf4 100%);
}

.modern-notification-error {
    border-left-color: #ef4444;
    background: linear-gradient(to right, #ffffff 0%, #fef2f2 100%);
}

.modern-notification-error .notification-progress {
    background: #ef4444;
}

.modern-notification-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #ffffff 0%, #fffbeb 100%);
}

.modern-notification-info {
    border-left-color: #3b82f6;
    background: linear-gradient(to right, #ffffff 0%, #eff6ff 100%);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    position: relative;
}

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

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

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

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

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

.notification-message {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 500;
    word-wrap: break-word;
}

.notification-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

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

.notification-close:active {
    transform: scale(0.9);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    width: 100%;
    transform-origin: left;
    animation: notificationProgress linear forwards;
}

.modern-notification-success .notification-progress {
    background: #10b981;
}

.modern-notification-error .notification-progress {
    background: #ef4444;
}

.modern-notification-warning .notification-progress {
    background: #f59e0b;
}

.modern-notification-info .notification-progress {
    background: #3b82f6;
}

@keyframes notificationProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }

    .modern-notification {
        transform: translateY(-100px);
        border-left-width: 3px;
    }

    .modern-notification.show {
        transform: translateY(0);
    }

    .modern-notification.hide {
        transform: translateY(-100px);
    }

    .notification-content {
        padding: 16px 18px;
        gap: 12px;
    }

    .notification-icon {
        width: 22px;
        height: 22px;
        font-size: 22px;
    }

    .notification-message {
        font-size: 14px;
    }

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

@media (max-width: 480px) {
    #notification-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }

    .notification-content {
        padding: 14px 16px;
    }

    .notification-message {
        font-size: 13px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .modern-notification {
        transition: opacity 0.2s ease;
    }

    .modern-notification.show,
    .modern-notification.hide {
        transform: none;
    }

    .notification-progress {
        animation: none;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .modern-notification {
        background: #1f2937;
        color: #f9fafb;
    }

    .notification-message {
        color: #f9fafb;
    }

    .notification-close {
        color: #9ca3af;
    }

    .notification-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
}

