/* Notification Styles */
:root {
    --notification-success-bg: #10b981;
    --notification-success-border: #059669;
    --notification-error-bg: #ef4444;
    --notification-error-border: #dc2626;
    --notification-warning-bg: #f59e0b;
    --notification-warning-border: #d97706;
    --notification-info-bg: #3b82f6;
    --notification-info-border: #2563eb;
}

.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.notification-container .notification {
    pointer-events: auto;
}

.notification {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: slideIn 0.3s ease-out;
    position: relative;
    min-width: 300px;
}

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.removing {
    animation: slideOut 0.3s ease-in forwards;
}

/* Success */
.notification-success {
    background-color: var(--notification-success-bg);
    border-left: 4px solid var(--notification-success-border);
    color: white;
}

/* Error */
.notification-error {
    background-color: var(--notification-error-bg);
    border-left: 4px solid var(--notification-error-border);
    color: white;
}

/* Warning */
.notification-warning {
    background-color: var(--notification-warning-bg);
    border-left: 4px solid var(--notification-warning-border);
    color: white;
}

/* Info */
.notification-info {
    background-color: var(--notification-info-bg);
    border-left: 4px solid var(--notification-info-border);
    color: white;
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

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

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.notification-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.25;
}

/* Inline notifications (in page content) */
.notification-inline {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.notification-inline.notification-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.notification-inline.notification-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.notification-inline.notification-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.notification-inline.notification-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #60a5fa;
}

/* Responsive */
@media (max-width: 640px) {
    .notification-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .notification {
        min-width: 0;
    }
}
