/* Notification System Styles */
.notification-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: calc(100vw - 40px);
    z-index: 9999;
    pointer-events: none;
    padding: 20px;
}

.notification {
    position: relative;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 16px;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border-left: 4px solid transparent;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hiding {
    transform: translateX(100%);
    opacity: 0;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-primary, #212529);
    word-wrap: break-word;
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: var(--text-secondary, #6c757d);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.notification-close:hover {
    background-color: var(--hover-bg, #f8f9fa);
    color: var(--text-primary, #212529);
}

.notification-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color, #0d6efd);
}

/* Notification Types */
.notification-success {
    border-left-color: #198754;
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.05) 0%, rgba(25, 135, 84, 0.1) 100%);
}

.notification-success .notification-icon {
    color: #198754;
}

.notification-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.1) 100%);
}

.notification-error .notification-icon {
    color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.1) 100%);
}

.notification-warning .notification-icon {
    color: #ffc107;
}

.notification-info {
    border-left-color: #0dcaf0;
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.05) 0%, rgba(13, 202, 240, 0.1) 100%);
}

.notification-info .notification-icon {
    color: #0dcaf0;
}

/* Dark Theme Support */
[data-theme="dark"] .notification {
    background: var(--card-bg, #2d3748);
    border-color: var(--border-color, #4a5568);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .notification-content {
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .notification-close {
    color: var(--text-secondary, #a0aec0);
}

[data-theme="dark"] .notification-close:hover {
    background-color: var(--hover-bg, #4a5568);
    color: var(--text-primary, #e2e8f0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-container {
        width: calc(100vw - 40px);
        padding: 16px;
    }
    
    .notification {
        margin-bottom: 12px;
    }
    
    .notification-content {
        padding: 14px;
        gap: 10px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    .notification-icon {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .notification-container {
        width: calc(100vw - 24px);
        padding: 12px;
    }
    
    .notification-content {
        padding: 12px;
        gap: 8px;
    }
    
    .notification-message {
        font-size: 12px;
    }
}

/* Animation Keyframes */
@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .notification {
        border-width: 2px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .notification-close {
        border: 1px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .notification {
        transition: none;
    }
    
    .notification.show,
    .notification.hiding {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .notification-container {
        display: none;
    }
}
