/**
 * Toast Notification Styles
 */

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

.notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(17, 14, 7, 0.95);
    border: 1px solid rgba(255, 223, 144, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
    max-width: 400px;
}

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

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

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    margin-top: 2px;
}

.notification-success .notification-icon {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.notification-error .notification-icon {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.notification-warning .notification-icon {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.notification-info .notification-icon {
    background: rgba(255, 223, 144, 0.2);
    color: #ffdf90;
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.notification-action {
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(255, 223, 144, 0.1);
    border: 1px solid rgba(255, 223, 144, 0.3);
    border-radius: 6px;
    color: #ffdf90;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.notification-action:hover {
    background: rgba(255, 223, 144, 0.2);
    border-color: rgba(255, 223, 144, 0.5);
}

.notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 0;
    line-height: 1;
}

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

/* Spinner for loading notifications */
.notification-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 223, 144, 0.3);
    border-top-color: #ffdf90;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success notification specific styles */
.notification-success {
    border-color: rgba(76, 175, 80, 0.4);
}

/* Error notification specific styles */
.notification-error {
    border-color: rgba(244, 67, 54, 0.4);
}

/* Warning notification specific styles */
.notification-warning {
    border-color: rgba(255, 152, 0, 0.4);
}

/* Info notification specific styles */
.notification-info {
    border-color: rgba(255, 223, 144, 0.4);
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .notification {
        transition: opacity 0.2s ease;
        transform: none !important;
    }
    
    .notification.show {
        opacity: 1;
    }
    
    .notification.hide {
        opacity: 0;
    }
    
    .notification-spinner {
        animation: none;
        border-top-color: #ffdf90;
        border-right-color: #ffdf90;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .notification {
        border-width: 2px;
    }
    
    .notification-success {
        border-color: #4caf50;
    }
    
    .notification-error {
        border-color: #f44336;
    }
    
    .notification-warning {
        border-color: #ff9800;
    }
    
    .notification-info {
        border-color: #ffdf90;
    }
}
