/* Notification System Styles (migrated from JS injection) */

/* Notification container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    max-width: 400px;
}

/* Individual notification */
.notification {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.notification.success::before { background: var(--success); }
.notification.warning::before { background: var(--warning); }
.notification.error::before { background: var(--error); }
.notification.info::before { background: var(--primary); }

@keyframes slideIn {
    0% { opacity: 0; transform: translateX(100%); }
    100% { opacity: 1; transform: translateX(0); }
}

.notification.removing { animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes slideOut {
    0% { opacity: 1; transform: translateX(0); max-height: 200px; margin-bottom: 0.75rem; }
    100% { opacity: 0; transform: translateX(100%); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
}

/* Notification icon */
.notification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 2px;
}

.notification.success .notification-icon { color: var(--success); }
.notification.warning .notification-icon { color: var(--warning); }
.notification.error .notification-icon { color: var(--error); }
.notification.info .notification-icon { color: var(--primary); }

/* Notification content */
.notification-content { flex: 1; min-width: 0; }
.notification-title { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 0.25rem; line-height: 1.3; }
.notification-message { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }

/* Close button */
.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-top: 2px;
}
.notification-close:hover { background: var(--surface-3); color: var(--text-primary); }

/* Progress bar for auto-dismiss */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    transition: width linear;
    opacity: 0.6;
}
.notification.success .notification-progress { background: var(--success); }
.notification.warning .notification-progress { background: var(--warning); }
.notification.error .notification-progress { background: var(--error); }

/* Action buttons */
.notification-actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; }
.notification-action { padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-primary); font-size: 0.8rem; cursor: pointer; transition: all 0.2s ease; }
.notification-action:hover { background: var(--surface-3); border-color: var(--primary); }
.notification-action.primary { background: var(--primary); color: white; border-color: var(--primary); }
.notification-action.primary:hover { background: var(--primary-dark); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-container { top: 10px; right: 10px; left: 10px; max-width: none; }
    .notification { margin-bottom: 0.5rem; padding: 0.875rem 1rem; }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .notification { background: rgba(30, 41, 59, 0.95); border-color: rgba(71, 85, 105, 0.5); }
}

