/**
 * ActProof.ai - Toast Notification Styles
 * Top-right notification popup system
 */

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

.notification {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(30, 30, 40, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    pointer-events: all;
    min-width: 300px;
    max-width: 400px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation states */
.notification-enter {
    opacity: 0;
    transform: translateX(100%) translateY(-20px);
}

.notification-active {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.notification-exit {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
}

/* Notification types */
.notification-success {
    border-left: 4px solid #10b981;
}

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

.notification-error {
    border-left: 4px solid #ef4444;
}

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

.notification-warning {
    border-left: 4px solid #f59e0b;
}

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

.notification-info {
    border-left: 4px solid #3b82f6;
}

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

/* Icon */
.notification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.notification-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
}

/* Message */
.notification-message {
    flex: 1;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
    word-wrap: break-word;
}

/* Close button */
.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

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

.notification-close svg {
    width: 100%;
    height: 100%;
}

/* Hover effect */
.notification:hover {
    transform: translateX(-4px);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Light theme support */
[data-theme="light"] .notification {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .notification-message {
    color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .notification-close {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .notification-close:hover {
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .notification:hover {
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .notification {
        min-width: 0;
        max-width: none;
    }
}

/* Stacking for multiple notifications */
.notification-container .notification:nth-child(n+4) {
    display: none;
}

/* Progress bar for auto-dismiss (optional enhancement) */
.notification.notification-with-progress::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: notification-progress linear;
}

@keyframes notification-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}
