/**
 * Notifications Component Styles
 * Toast notifications for success, error, warning, and info messages
 */

/* Notifications Container */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Individual Notification */
.notification {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Notification Types */
.notification.success {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.notification.error {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.notification.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.notification.info {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

/* Notification Icon */
.notification-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

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

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

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

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

/* Notification Content */
.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.notification.success .notification-title {
    color: #166534;
}

.notification.error .notification-title {
    color: #991b1b;
}

.notification.warning .notification-title {
    color: #92400e;
}

.notification.info .notification-title {
    color: #1e40af;
}

.notification-message {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification.success .notification-message {
    color: #15803d;
}

.notification.error .notification-message {
    color: #dc2626;
}

.notification.warning .notification-message {
    color: #d97706;
}

.notification.info .notification-message {
    color: #2563eb;
}

/* Close Button */
.notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.notification.success .notification-close {
    color: #166534;
}

.notification.error .notification-close {
    color: #991b1b;
}

.notification.warning .notification-close {
    color: #92400e;
}

.notification.info .notification-close {
    color: #1e40af;
}

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

/* Progress Bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
    transform-origin: left;
    animation: progress 5s linear forwards;
}

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

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

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

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

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

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .notification {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .notification.success {
        background: #064e3b;
    }
    
    .notification.error {
        background: #7f1d1d;
    }
    
    .notification.warning {
        background: #78350f;
    }
    
    .notification.info {
        background: #1e3a8a;
    }
}
