/* Notification Container */
#notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 450px;
    pointer-events: none;
}

.notification-toast {
    pointer-events: auto;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-left: 5px solid var(--accent-primary);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme='dark'] .notification-toast {
    background: #1e293b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.toast-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.toast-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.toast-title {
    font-weight: 600;
    flex-grow: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-body {
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 8px;
    text-align: center;
}

.stat-item {
    padding: 5px;
    border-radius: 4px;
    font-weight: 600;
}

.stat-item.added {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-item.updated {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-item.removed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-item small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
}

.warnings-list {
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.warning-item {
    color: #f59e0b;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.row-snippet {
    background: rgba(0, 0, 0, 0.05);
    font-family: 'Consolas', monospace;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-secondary);
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] .row-snippet {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
.slide-in {
    animation: slideInDown 0.4s ease-out forwards;
}

.fade-out {
    animation: fadeOutUp 0.4s ease-in forwards;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Specific Types */
.toast-success {
    border-left-color: #22c55e;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-error {
    border-left-color: #ef4444;
}